roles/nsswitch: Configure glibc name service

The *nsswitch* role can be used to configure the name service switch on
glibc-based distributions, including Gentoo, Fedora, and CentOS. It is
specifically focused on Active Directory authentication via
Samba/Winbind.
This commit is contained in:
2018-03-11 18:06:21 -05:00
parent 61b918242a
commit 7217c1c8a0
4 changed files with 156 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
nsswitch_passwd:
- files
- '{{ "winbind" if nss_winbind|d else "sss" }}'
nsswitch_shadow:
- files
nsswitch_group:
- files
- '{{ "winbind" if nss_winbind|d else "sss" }}'
nsswitch_hosts:
- files
- '{% if nss_avahi|d %}mdns_minimal [NOTFOUND=return]{% endif %}'
- dns
- myhostname