templier-ansible/roles/root/tasks/main.yml
Yohann D'ANELLO 145dccac2d
Deploy root password
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-06-04 15:51:04 +02:00

7 lines
143 B
YAML

---
- name: Deploys root password hash
replace:
path: /etc/shadow
regexp: '^root:[^:]*:'
replace: 'root:{{ root.passwd_hash }}:'