Ansible role to manage sudo and sudoers file.
- Ansible 2.7.1
- pacman ;-)
hash_behaviour = merge
Just add the role to your requirements.yml
file:
- src: https://github.com/feffi/ansible-arch-sudo.git
name: ansible-arch-sudo
ansible_arch_sudo: {
# Users to add to sudoers
users: [],
# Groups to add to sudoers
groups: [
"wheel"
]
}
Example:
- hosts: all
vars:
ansible_arch_sudo:
users: []
groups:
- "wheel"
roles:
- { role: ansible-arch-sudo }