/ansible-arch-sudo

Ansible role to manage sudo and sudoers file.

MIT LicenseMIT

ansible-arch-sudo

Ansible role to manage sudo and sudoers file.

Build Status Github All Releases GitHub forks GitHub stars GitHub watchers Twitter Follow License

Requirements

  • Ansible 2.7.1
  • pacman ;-)

ansible.cfg

hash_behaviour = merge

Install

Just add the role to your requirements.yml file:

- src: https://github.com/feffi/ansible-arch-sudo.git
  name: ansible-arch-sudo

Role Defaults Variables

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 }