15 lines
312 B
YAML
15 lines
312 B
YAML
|
- name: Ajoute sudoer
|
||
|
hosts: localhost
|
||
|
vars_prompt:
|
||
|
- name: username
|
||
|
prompt: "Identifiant de l'utilisateur concerné"
|
||
|
private: false
|
||
|
|
||
|
tasks:
|
||
|
- name: Configure sudo pour {{ username }}
|
||
|
ansible.builtin.user:
|
||
|
name: "{{ username }}"
|
||
|
groups: sudo
|
||
|
append: true
|
||
|
|