diff --git a/tasks/config.yml b/tasks/config.yml index d5be5ce..010d1c5 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -10,7 +10,7 @@ - name: Create local users for pam auth user: name: "{{ item.name }}" - password: "{{ item.password | password_hash('sha512') }}" + password: "{{ item.password | password_hash('sha512', 65534 | random(seed=inventory_hostname) | string) }}" state: "{{ item.state | default('present') }}" with_items: "{{ postgres_users }}" no_log: True