Add nsswitch config to scan
This commit is contained in:
parent
fe646ece89
commit
b252e451f6
3
roles/scan/files/nsswitch.conf
Normal file
3
roles/scan/files/nsswitch.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
hosts: files dns
|
||||
passwd: winbind
|
||||
group: winbind
|
|
@ -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 }}'
|
||||
|
|
Loading…
Reference in a new issue