Skip to content
Install utilities for interactions with SELinux
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
meta
tasks
tests
.gitignore
.travis.yml
README.md
molecule.yml
playbook.yml

README.md

SELinux Utils

Build Status Ansible Role

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:
  - selinux-utils
  tasks:
    debug:
      msg: "SELinux is enabled or permissive"
    when: selinux_enabled

Author Information

ome-devel@lists.openmicroscopy.org.uk

You can’t perform that action at this time.