Deploy root password
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
6
roles/root/tasks/main.yml
Normal file
6
roles/root/tasks/main.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: Deploys root password hash
|
||||
replace:
|
||||
path: /etc/shadow
|
||||
regexp: '^root:[^:]*:'
|
||||
replace: 'root:{{ root.passwd_hash }}:'
|
Reference in New Issue
Block a user