Update serv-04-adduser/tasks/main.yml
This commit is contained in:
@@ -26,14 +26,6 @@
|
||||
mode: '0600'
|
||||
when: useraction == "add"
|
||||
|
||||
# REMOVE USER
|
||||
#- name: Remove user and home directory
|
||||
# ansible.builtin.user:
|
||||
# name: "{{ username }}"
|
||||
# state: absent
|
||||
# remove: yes
|
||||
# when: useraction == "remove"
|
||||
|
||||
- name: Allow {{ username }} to switch to 'docker' user without password
|
||||
ansible.builtin.copy:
|
||||
dest: "/etc/sudoers.d/{{ username }}-su-docker"
|
||||
|
||||
Reference in New Issue
Block a user