vn-ansible/roles/debian-base/tasks/root.yaml

10 lines
215 B
YAML
Raw Normal View History

2024-09-23 12:30:38 +00:00
- name: Delete default user
user:
2024-09-24 08:37:09 +00:00
name: "{{ default_user }}"
2024-09-23 12:30:38 +00:00
state: absent
remove: yes
- name: Change root password
user:
name: root
password: "{{ root_password | password_hash('sha512') }}"