10 lines
276 B
YAML
10 lines
276 B
YAML
- 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 }}"
|