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,17 @@
- name: load distribution-specific variables
include_vars: '{{ item }}'
with_first_found:
- '{{ ansible_distribution }}.yml'
- '{{ ansible_os_family }}.yml'
- defaults.yml
- name: ensure nsswitch is configured
template:
src={{ item }}
dest=/etc/nsswitch.conf
mode=644
owner=root
group=root
with_first_found:
- '{{ ansible_distribution }}.nsswitch.conf.j2'
- default.nsswitch.conf.j2