Add user to sudo or wheel

This commit is contained in:
Salt 2020-09-02 22:21:07 -05:00
parent 4178990345
commit 8cc22ac56f

View File

@ -9,6 +9,18 @@
groups: sudo
append: yes
become: yes
- name: Add user to sudo
user:
name: "{{ user_username }}"
groups: sudo
become: yes
when: ansible_distribution == "Ubuntu"
- name: Add user to wheel
user:
name: "{{ user_username }}"
groups: wheel
become: yes
when: ansible_distribution != "Ubuntu"
- name: Bootstrap user
block:
- name: Assure .ssh directory