APPEND the group, APPEND IT
This commit is contained in:
parent
62fad4cd94
commit
4550f1bb04
@ -6,18 +6,19 @@
|
||||
name: "{{ user_username }}"
|
||||
shell: "{{ user_shell }}"
|
||||
password: "{{ user_password }}"
|
||||
append: yes
|
||||
become: yes
|
||||
- name: Add user to sudo
|
||||
user:
|
||||
name: "{{ user_username }}"
|
||||
groups: sudo
|
||||
append: yes
|
||||
become: yes
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
- name: Add user to wheel
|
||||
user:
|
||||
name: "{{ user_username }}"
|
||||
groups: wheel
|
||||
append: yes
|
||||
become: yes
|
||||
when: ansible_distribution != "Ubuntu"
|
||||
- name: Bootstrap user
|
||||
|
Loading…
Reference in New Issue
Block a user