FIX: vars_files removed from inventory hosts file. User is not added to its own group (it happens automatically). Vault password file argument added to run_playbook.sh

This commit is contained in:
2026-07-05 16:11:06 +00:00
parent 6a7952e571
commit 45d134003f
3 changed files with 3 additions and 5 deletions
@@ -24,13 +24,13 @@
name: sshusers
state: present
## Add the user to its own group, sshusers (for ssh access) and sudo (gain root access)
## Add the user to sshusers (for ssh access) and sudo (gain root access)
- name: Create a new user with a password for Ansible
user:
name: ansible
password: "{{ ansible_user_passwd_hash }}"
groups: ansible,sshusers,sudo
groups: sshusers,sudo
append: yes
## Since password authentication in SSH will be disabled, we need to add an authorized key