dfg
This commit is contained in:
parent
7d507da49a
commit
f3e44bb633
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@
|
||||||
#no_log: true
|
#no_log: true
|
||||||
|
|
||||||
# teilweiser revert von https://git.mgrote.net/mg/homeserver/commit/506fa8da8d8c4ca74d0d78d044468b991d0d560a
|
# teilweiser revert von https://git.mgrote.net/mg/homeserver/commit/506fa8da8d8c4ca74d0d78d044468b991d0d560a
|
||||||
# das modul hat die Sudoers falsch erstellt:
|
# das modul erstellt die sudoers falsch:
|
||||||
# richtig: ansible-user ALL=(ALL) NOPASSWD:ALL
|
# richtig: ansible-user ALL=(ALL) NOPASSWD:ALL
|
||||||
# falsch: ansible-user ALL=NOPASSWD: ALL
|
# falsch: ansible-user ALL=NOPASSWD: ALL
|
||||||
# damit failed ansible wenn der become_user != ansible-user ist
|
# damit failed ansible wenn der become_user != ansible-user ist
|
||||||
|
@ -62,5 +62,5 @@
|
||||||
path: "/etc/sudoers.d/users-sudo-{{ item.username }}"
|
path: "/etc/sudoers.d/users-sudo-{{ item.username }}"
|
||||||
state: "{{ item.state | default('present') }}"
|
state: "{{ item.state | default('present') }}"
|
||||||
loop: '{{ users }}'
|
loop: '{{ users }}'
|
||||||
when: (item.allow_sudo|default(false) and item.allow_sudo is defined) and (item.state is absent)
|
when: (item.allow_sudo|default(false) and item.allow_sudo is defined) and ("absent" in item.state)
|
||||||
# no_log: true
|
# no_log: true
|
||||||
|
|
Loading…
Reference in a new issue