selinux

SELinux

Configures SELinux on hosts.

Build Status

Requirements

This role requires Ansible 2.0 or higher.

Role Variables

  • Variables are all in role/defaults/main.yml
| Name           | Default    | Description                                       |
|----------------|------------|---------------------------------------------------|
| selinux_policy | targeted   | SELinux policy type (targeted or mls)             |
| selinux_state  | permissive | SELinux state (permissive, enforcing or disabled) |

Dependencies

None

Example Playbook

Configure SELinux in permissive mode.

- hosts: all
  roles:
    - { role: chris1984.selinux }

Disable SELinux

- hosts: all
  roles:
    - { role: chris1984.selinux, selinux_state: disabled }

Configure SELinux to use mls policy and enforcing mode

- hosts: all
  roles:
    - { role: chris1984.selinux, selinux_policy: mls, selinux_state: enforcing}

License

MIT

Author Information

About

Configures SELinux

Install
ansible-galaxy install chris1984/selinux
GitHub repository
License
Unknown
Downloads
94
Owner
Senior Software Developer - Red Hat Satellite, Hammer-cli-katello, Azure, fog-vsphere.