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.
14 lines
279 B
YAML
14 lines
279 B
YAML
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
|