initial commit

This commit is contained in:
2023-11-19 13:46:52 +03:00
commit 8dc150a911
6 changed files with 700 additions and 0 deletions

16
tasks/main.yml Normal file
View File

@@ -0,0 +1,16 @@
---
- name: Delete i attr in shadow file
file:
path: /etc/shadow
attr: '-i'
- name: Change password root user
user:
name: "root"
state: present
password: "{{ root_password | password_hash('sha512') }}"
- name: Setup i attr in shadow file
file:
path: /etc/shadow
attr: i