always update pass
This commit is contained in:
parent
7719d7f479
commit
0bfd2360cc
@ -154,13 +154,13 @@
|
|||||||
groups: users,sudo
|
groups: users,sudo
|
||||||
password: "{{ item.password }}"
|
password: "{{ item.password }}"
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
update_password: on_create # Add the same initial password for all users (can be overwritten by user)
|
update_password: always
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ users }}"
|
- "{{ users }}"
|
||||||
- name: "Add authorized keys"
|
- name: "Add authorized keys"
|
||||||
ansible.posix.authorized_key:
|
ansible.posix.authorized_key:
|
||||||
user: "{{ item.name }}"
|
user: "{{ item.name }}"
|
||||||
key: "{{ lookup('file', 'files/' + item + '.pub') }}"
|
key: "{{ lookup('file', 'files/' + item.name + '.pub') }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ users }}"
|
- "{{ users }}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user