This role will assume the basic installation of sudo
- Ansible 1.7.2+
None.
Using ansible galaxy cli:
ansible-galaxy install elao.sudo,2.0
Using ansible galaxy requirements file:
- src: elao.sudo
version: 2.0
Using ansible galaxy cli:
ansible-galaxy install elao.sudo,1.0
Using ansible galaxy requirements file:
- src: elao.sudo
version: 1.0
Name | Type | Description |
---|---|---|
sudo restart |
Service | Restart sudo service |
Name | Default | Type | Description |
---|---|---|---|
elao_sudo_sudoers_exclusive |
false | Boolean | Sudoers files exclusivity |
elao_sudo_sudoers_dir |
/etc/sudoers.d | String | Path to sudo configuration files |
elao_sudo_sudoers |
[] | Array | Collection of sudoers |
- hosts: all
vars:
elao_sudo_sudoers:
- file: vagrant
config:
- vagrant: ALL=NOPASSWD:ALL
roles:
- role: elao.sudo
Exclusivity (all sudoers non defined by role will be deleted)
elao_sudo_sudoers_exclusive: true
MIT