From bcd008123e9ca08c05b3c10b46987a5023917bfc Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Thu, 8 Oct 2020 16:32:02 +0200 Subject: [PATCH] password generation now indempotent --- setup.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.yml b/setup.yml index 91891d7..1ab6baf 100644 --- a/setup.yml +++ b/setup.yml @@ -26,6 +26,7 @@ - name: create account user: name: ansible + password: "{{ '123Soleil%' | password_hash('sha512',65534|random(seed=inventory_hostname) | string) }}" password: "{{ '123Soleil2020%' | password_hash('sha512') }}" create_home: yes home: /home/ansible