ajout fichier src

This commit is contained in:
2021-06-10 13:55:45 +02:00
parent b6fbdbd8e5
commit 8a2930d635
2 changed files with 5 additions and 2 deletions

View File

@@ -26,13 +26,13 @@
- name: create account
user:
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
home: /home/ansible
- name: configure sudo
copy:
content: "ansible ALL=(ALL) NOPASSWD: ALL"
src: sudo
dest: /etc/sudoers.d/ansible
validate: "/usr/sbin/visudo -cf %s"

3
sudo Normal file
View File

@@ -0,0 +1,3 @@
#Configuration sudo
# en nopassword pour ansible
ansible ALL=(ALL) NOPASSWD: ALL