APPEND the group, APPEND IT

This commit is contained in:
Salt 2020-09-02 22:49:46 -05:00
parent 62fad4cd94
commit 4550f1bb04

View File

@ -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