Skip to content

manics-archive/ansible-role-selinux-utils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Author Information

[email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%