change ansible password only on user creation
This commit is contained in:
parent
3bfd89e1b6
commit
32f2ece944
|
|
@ -18,6 +18,7 @@
|
||||||
# https://www.lisenet.com/2019/ansible-generate-crypted-passwords-for-the-user-module/
|
# https://www.lisenet.com/2019/ansible-generate-crypted-passwords-for-the-user-module/
|
||||||
password: "{{ ansible_crypted_password | password_hash('sha512') }}"
|
password: "{{ ansible_crypted_password | password_hash('sha512') }}"
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
|
update_password: on_create
|
||||||
system: yes
|
system: yes
|
||||||
home: /srv/ansible
|
home: /srv/ansible
|
||||||
state: present
|
state: present
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue