ansible/roles/root/tasks/main.yml

7 lines
143 B
YAML

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