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 }}"
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