feat(role): ensures that sudo group exists
This commit is contained in:
@@ -24,6 +24,12 @@
|
|||||||
name: sshusers
|
name: sshusers
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Ensure group "sudo" exists
|
||||||
|
ansible.builtin.group:
|
||||||
|
name: sudo
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
## Add the user to 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
|
- name: Create a new user with a password for Ansible
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
|
|||||||
Reference in New Issue
Block a user