set strong password for root

This commit is contained in:
2025-10-07 15:51:34 +02:00
parent f38eeed748
commit ab9d723eae
3 changed files with 59 additions and 43 deletions

View File

@@ -1,4 +1,7 @@
# Configure users for the bastion host
- name: users | root | Set strong password
include_tasks: users/root.yml
- name: users | rene | Ensure admin user is absent from bastion
include_tasks: users/rene.yml

View File

@@ -0,0 +1,6 @@
# in z.B. roles/bastionhost/tasks/system_setup/user_hardening.yml
- name: Bastionhost | User Hardening | Set a strong root password from vault
ansible.builtin.user:
name: root
password: "{{ root_password_hash }}"
when: root_password_hash is defined