Add nsswitch config to scan

This commit is contained in:
polz 2025-02-17 14:12:18 +01:00
parent fe646ece89
commit b252e451f6
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,3 @@
hosts: files dns
passwd: winbind
group: winbind

View file

@ -65,6 +65,12 @@
- name: Join AD
command: samba-tool domain join {{ domain | upper }} MEMBER -U {{ ad_user.user_input | upper }} --password="{{ad_pass.user_input}}"
- name: Add winbind to nsswitch.conf
copy:
src: nsswitch.conf
dest: /etc/nsswitch.conf
notify: reload nscd
- name: Enable services
service:
name: '{{ item }}'