https://github.com/ome/ansible-role-sudoers
Configure sudoers.
https://github.com/ome/ansible-role-sudoers
ansible role sudoers
Last synced: 5 months ago
JSON representation
Configure sudoers.
- Host: GitHub
- URL: https://github.com/ome/ansible-role-sudoers
- Owner: ome
- License: bsd-2-clause
- Created: 2017-01-12T14:48:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-10-30T11:05:57.000Z (7 months ago)
- Last Synced: 2025-10-30T12:33:29.575Z (7 months ago)
- Topics: ansible, role, sudoers
- Language: Python
- Homepage: https://galaxy.ansible.com/ome/sudoers/
- Size: 23.4 KB
- Stars: 0
- Watchers: 8
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Sudoers
=======
[](https://github.com/ome/ansible-role-sudoers/actions)
[](https://galaxy.ansible.com/ui/standalone/roles/ome/sudoers/)
Configure sudoers.
TODO: Expand this role
Role Variables
--------------
- `sudoers_individual_commands`: List of dictionaries with keys: `[{user: username, become: becomeuser, command: "/usr/bin/command args" }]`
Example Playbook
----------------
- hosts: localhost
roles:
- role: ome.sudoers
sudoers_individual_commands:
- user: user1
become: root
command: /usr/bin/mount *
- user: user2
become: root
command: /usr/bin/less /var/log/*
Author Information
------------------
ome-devel@lists.openmicroscopy.org.uk