https://github.com/ome/ansible-role-selinux-utils
Install utilities for interactions with SELinux
https://github.com/ome/ansible-role-selinux-utils
ansible role selinux
Last synced: 12 months ago
JSON representation
Install utilities for interactions with SELinux
- Host: GitHub
- URL: https://github.com/ome/ansible-role-selinux-utils
- Owner: ome
- License: bsd-2-clause
- Created: 2017-01-06T16:22:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T12:31:24.000Z (about 2 years ago)
- Last Synced: 2025-06-05T06:55:07.217Z (about 1 year ago)
- Topics: ansible, role, selinux
- Language: Python
- Homepage: https://galaxy.ansible.com/ome/selinux_utils
- Size: 31.3 KB
- Stars: 2
- Watchers: 10
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
SELinux Utils
=============
[](https://github.com/ome/ansible-role-selinux-utils/actions)
[](https://galaxy.ansible.com/ui/standalone/roles/ome/selinux_utils/)
Sets a host variable indicating whether SELinux is enabled or not.
Installs utilities for interacting with SELinux if it is.
These utilities may be required by some Ansible modules when SELinux is enabled, and are not always present in CentOS 7 base images.
This role will set the host variable `selinux_enabled: {True,False}` which can be used in later roles.
Ideally this role should be included as a dependency in `meta/main.yml` of any roles that need to know whether SELinux is enabled.
Example Playbook
----------------
- hosts: localhost
roles:
- ome.selinux_utils
tasks:
debug:
msg: "SELinux is enabled or permissive"
when: selinux_enabled
Author Information
------------------
ome-devel@lists.openmicroscopy.org.uk