linuxinstaller/ansible/supprime-sudoer.yml

11 lines
276 B
YAML
Raw Normal View History

2024-10-06 23:44:04 +02:00
- name: Supprime sudoer
hosts: localhost
vars_prompt:
- name: username
prompt: "Identifiant de l'utilisateur concerné"
private: false
tasks:
- name: Retire sudo pour {{ username }}
ansible.builtin.command: "usermod -r -G sudo {{ username }}"