An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

SELinux Utils
=============

[![Actions Status](https://github.com/ome/ansible-role-selinux-utils/workflows/Molecule/badge.svg)](https://github.com/ome/ansible-role-selinux-utils/actions)
[![Ansible Role](https://img.shields.io/badge/ansible--galaxy-selinux_utils-blue.svg)](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