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