roles/users/tasks/main.yml aktualisiert
This commit is contained in:
parent
385cf4acf2
commit
5b5888af41
1 changed files with 2 additions and 1 deletions
|
|
@ -16,9 +16,10 @@
|
||||||
- name: Enable sudoers.d subdir
|
- name: Enable sudoers.d subdir
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/sudoers
|
path: /etc/sudoers
|
||||||
|
state: present
|
||||||
regexp: '^#includedir'
|
regexp: '^#includedir'
|
||||||
line: 'includedir /etc/sudoers.d'
|
line: 'includedir /etc/sudoers.d'
|
||||||
validate: 'visudo -cf %s'
|
validate: /usr/sbin/visudo -cf %s
|
||||||
|
|
||||||
- name: Ensure user "rulrich" exists
|
- name: Ensure user "rulrich" exists
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue