1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_collection_users.git synced 2024-08-16 10:29:50 +02:00
ansible_collection_users/roles/admin/tasks/user_ansible.yml

11 lines
291 B
YAML
Raw Normal View History

2024-02-14 22:51:50 +01:00
---
- name: Give ansible user sudo permissions
become: true
community.general.sudoers:
name: 'ansible_superpowers'
commands: 'ALL'
nopassword: true
2024-02-15 02:51:39 +01:00
user: 'ansible'
state: "{{ l3d_users__ansible_user_state | ternary('present', 'absent') }}"
2024-02-14 22:51:50 +01:00
validation: 'required'