Add role for ensuring a cit user, which has root privileges

This commit is contained in:
Julian Schacher
2023-11-22 16:39:54 +01:00
parent 96062d651d
commit 97afdac16a

View File

@@ -0,0 +1,18 @@
- name: Ensure cit user
ansible.builtin.user:
name: cit
create_home: true
shell: /bin/bash
password: '!'
state: present
become: true
- name: Ensure cit user has root privileges
community.general.sudoers:
name: cit root privileges
user: cit
commands: ALL
host: ALL
nopassword: true
validation: required
state: present