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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user