Make sure user is in sudo group
This commit is contained in:
parent
ea1329008d
commit
9015cfbbe4
@ -315,6 +315,21 @@
|
||||
dest: /etc/chkrootkit.conf
|
||||
mode: 0644
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Install sudo and user to group.
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
- name: Install sudo
|
||||
apt:
|
||||
name: sudo
|
||||
|
||||
- name: Adding existing user to group sudo
|
||||
user:
|
||||
name: "{{ ansible_ssh_user }}"
|
||||
groups: sudo
|
||||
append: yes
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Docker CE.
|
||||
# -------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user