Update serv-04-adduser/tasks/main.yml

This commit is contained in:
2025-07-21 10:51:41 +02:00
parent aea3290ec2
commit c45ac6f26b

View File

@@ -26,14 +26,6 @@
mode: '0600' mode: '0600'
when: useraction == "add" 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 - name: Allow {{ username }} to switch to 'docker' user without password
ansible.builtin.copy: ansible.builtin.copy:
dest: "/etc/sudoers.d/{{ username }}-su-docker" dest: "/etc/sudoers.d/{{ username }}-su-docker"