This commit is contained in:
Christoph 2021-10-16 10:50:58 +02:00
parent ba177654d5
commit c48fd888f4
2 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ sshd_allowed_users: {}
apt_manage_sources_list: true
apt_src_enable: true
apt_src_enable: false
apt_backports_enable: true
apt_debian_mirror: http://ftp.de.debian.org/debian/

View File

@ -179,7 +179,7 @@
- name: (nis-install-client.yml) Adjust file /etc/nsswitch.conf (set hosts)
replace:
path: /etc/nsswitch.conf
regexp: '(hosts:\s+files)\s+([^nis].*)'
regexp: '(hosts:\s+files)\s+((?!nis).*)$'
replace: '\1 nis \2'
tags:
- nis-install
@ -188,7 +188,7 @@
- name: (nis-install-client.yml) Adjust file /etc/nsswitch.conf (set passwd/group/shadow)
replace:
path: /etc/nsswitch.conf
regexp: '^({{ item }}:\s+.*)'
regexp: '^({{ item }}:\s+((?!nis).)*)$'
replace: '\1 nis'
with_items:
- passwd