mirror of
https://github.com/roles-ansible/ansible_collection_users.git
synced 2024-08-16 10:29:50 +02:00
11 lines
291 B
YAML
11 lines
291 B
YAML
|
---
|
||
|
- name: Give ansible user sudo permissions
|
||
|
become: true
|
||
|
community.general.sudoers:
|
||
|
name: 'ansible_superpowers'
|
||
|
commands: 'ALL'
|
||
|
nopassword: true
|
||
|
user: "{{ l3d_users__ansible_user_state | ternary('present', 'absent') }}"
|
||
|
validation: 'required'
|
||
|
state: 'present'
|