mise au point solution atelier
This commit is contained in:
@@ -26,13 +26,13 @@
|
||||
- name: create account
|
||||
tags: lookup
|
||||
vars:
|
||||
password: "{{ lookup( 'keepass', 'ansible shell', 'password') }}"
|
||||
username: "{{ lookup( 'keepass', 'ansible shell', 'username') }}"
|
||||
password: "{{ lookup( 'keepass', 'ansible', 'password') }}"
|
||||
username: "{{ lookup( 'keepass', 'ansible', 'username') }}"
|
||||
user:
|
||||
name: "{{ username }}"
|
||||
password: "{{ password | password_hash('sha512',65534|random(seed=inventory_hostname) | string) }}"
|
||||
create_home: yes
|
||||
home: /home/ansible
|
||||
home: "/home/{{ username }}"
|
||||
|
||||
- name: configure sudo
|
||||
copy:
|
||||
|
||||
Reference in New Issue
Block a user