Aggiunta per sicurezza permessi sudo senza password a root.
This commit is contained in:
parent
2ee8e7f697
commit
f7cc13a825
@ -11,6 +11,18 @@
|
||||
state: present
|
||||
generate_ssh_key: yes
|
||||
|
||||
- name: Concessione diritti sudo all'utente root
|
||||
lineinfile:
|
||||
dest: /etc/sudoers.d/root
|
||||
regexp: "^root.*NOPASSWD"
|
||||
line: "root ALL=(ALL:ALL) NOPASSWD:ALL"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0440
|
||||
create: yes
|
||||
state: present
|
||||
validate: '/usr/sbin/visudo -c -f %s'
|
||||
|
||||
- name: Concessione diritti sudo all'utente ansible
|
||||
lineinfile:
|
||||
dest: /etc/sudoers.d/amgmt
|
||||
|
Loading…
x
Reference in New Issue
Block a user