Add user to sudo group
This commit is contained in:
parent
e4bd137dda
commit
d1c0257d8c
1 changed files with 1 additions and 1 deletions
|
@ -3,10 +3,10 @@
|
||||||
user:
|
user:
|
||||||
name: "{{ username }}"
|
name: "{{ username }}"
|
||||||
password: "{{ password }}"
|
password: "{{ password }}"
|
||||||
generate_ssh_key: yes
|
|
||||||
create_home: yes
|
create_home: yes
|
||||||
state: present
|
state: present
|
||||||
update_password: always
|
update_password: always
|
||||||
|
groups: sudo
|
||||||
register: account
|
register: account
|
||||||
|
|
||||||
- name: ensure .ssh exists
|
- name: ensure .ssh exists
|
||||||
|
|
Loading…
Reference in a new issue