Role Detail

ericsysmin.selinux

Manage SELinux settings on a host
Downloads
16
Type Ansible
Minimum Ansible Version 2.0.0
Installation $ ansible-galaxy install ericsysmin.selinux
Tags
centos
oracle
rhel
selinux
Last Commit 2017-01-30 21:52:09 PM UTC
Last Imported 2017-01-30 21:56:09 PM UTC
Supported Platforms
Platform Version
EL 7
Last 10 Imports
Completed Status
2017-01-30 21:56:09 PM UTC SUCCESS

ericsysmin.selinux

Using this module you are able manage the SELinux configuration on the host. It can also reboot the host if required.

Requirements

  • libselinux-python package is required on the host executing the playbook/role.

Role Variables

Variable Required Default Comments
selinux_policy No targeted The name of the SELinux policy to use
selinux_state No enforcing The SELinux mode to be used.
reboot No false This flag will tell the remote machine to reboot after modifying.

Example Playbooks

Example


- hosts: all
  roles:
    - role: ericsysmin.selinux
      selinux_state: disabled
      reboot: true

License

MIT

Author Information

Eric Anderson
ericsysmin.com

None