linuxinstaller/ansible/supprime-sudoer.yml
2024-10-19 19:10:07 +02:00

5 lines
163 B
YAML

- name: Supprime sudoer
hosts: localhost
tasks:
- name: Retire sudo pour {{ username }}
ansible.builtin.command: "usermod -r -G sudo {{ username }}"