ajout fichier src
This commit is contained in:
@@ -26,13 +26,13 @@
|
|||||||
- name: create account
|
- name: create account
|
||||||
user:
|
user:
|
||||||
name: ansible
|
name: ansible
|
||||||
password: "{{ '123Soleil%' | password_hash('sha512',65534|random(seed=inventory_hostname) | string) }}"
|
password: "{{ '123Soleil2021%' | password_hash('sha512',65534|random(seed=inventory_hostname) | string) }}"
|
||||||
create_home: yes
|
create_home: yes
|
||||||
home: /home/ansible
|
home: /home/ansible
|
||||||
|
|
||||||
- name: configure sudo
|
- name: configure sudo
|
||||||
copy:
|
copy:
|
||||||
content: "ansible ALL=(ALL) NOPASSWD: ALL"
|
src: sudo
|
||||||
dest: /etc/sudoers.d/ansible
|
dest: /etc/sudoers.d/ansible
|
||||||
validate: "/usr/sbin/visudo -cf %s"
|
validate: "/usr/sbin/visudo -cf %s"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user