use idempotent salt
This commit is contained in:
parent
c3cc5881e7
commit
0503de5971
@ -10,7 +10,7 @@
|
|||||||
- name: Create local users for pam auth
|
- name: Create local users for pam auth
|
||||||
user:
|
user:
|
||||||
name: "{{ item.name }}"
|
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') }}"
|
state: "{{ item.state | default('present') }}"
|
||||||
with_items: "{{ postgres_users }}"
|
with_items: "{{ postgres_users }}"
|
||||||
no_log: True
|
no_log: True
|
||||||
|
Loading…
Reference in New Issue
Block a user