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