mise au point solution atelier

This commit is contained in:
2021-11-23 15:11:24 +01:00
parent 17c6f5bba2
commit 2cb4827bc4
2 changed files with 3 additions and 3 deletions

BIN
keep.kdbx

Binary file not shown.

View File

@@ -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: