use idempotent salt

This commit is contained in:
Robert Kaussow 2018-10-22 23:33:14 +02:00
parent c3cc5881e7
commit 0503de5971

View File

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