linuxinstaller/ansible/supprime-sudoer.yml

6 lines
163 B
YAML
Raw Normal View History

2024-10-06 23:44:04 +02:00
- name: Supprime sudoer
hosts: localhost
tasks:
- name: Retire sudo pour {{ username }}
ansible.builtin.command: "usermod -r -G sudo {{ username }}"