Make sure user is in sudo group

This commit is contained in:
Wojciech Kozlowski 2018-12-17 00:51:41 +00:00
parent ea1329008d
commit 9015cfbbe4

View File

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