feat(user): Enable sudo for wheel group
This commit is contained in:
parent
b57c92d458
commit
83e64b6776
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,12 @@
|
|||
- video
|
||||
|
||||
tasks:
|
||||
- name: Enable sudo for "wheel" group
|
||||
ansible.builtin.lineinfile:
|
||||
path: "/etc/sudoers"
|
||||
regexp: '^# %wheel ALL=(ALL) ALL$'
|
||||
line: '%wheel ALL=(ALL) ALL'
|
||||
|
||||
- name: Add user
|
||||
ansible.builtin.user:
|
||||
name: "{{ user_name }}"
|
||||
|
|
Loading…
Reference in a new issue