Deploy root password

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
2021-06-04 15:51:04 +02:00
parent 8c4684a450
commit 145dccac2d
4 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
- name: Deploys root password hash
replace:
path: /etc/shadow
regexp: '^root:[^:]*:'
replace: 'root:{{ root.passwd_hash }}:'