blackstar257 / ansible-selinux

Ansible Role - SELinux

Home Page:https://galaxy.ansible.com/blackstar257/selinux/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Role: Selinux

Ansible Role Build Status

Configures SELinux.

Requirements

This role requires Ansible 1.4 or higher.

Role Variables

Name Default Description
selinux_policy targeted SELinux policy type (targeted or mls)
selinux_state permissive SELinux state (permissive, enforcing or disabled)
selinux_relabel true Auto relabel files upon boot if enabled

Dependencies

None

Example Playbook

Configure SELinux in permissive mode.

- hosts: all
  roles:
    - blackstar257.selinux

Disable SELinux

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

Configure SELinux to use mls policy and enforcing mode

- hosts: all
  vars:
    selinux_policy: mls
    selinux_state: enforcing
  roles:
    - blackstar257.selinux

License

BSD

Author Information

Original Owner Kevin Brebanov Forked by blackstar257

About

Ansible Role - SELinux

https://galaxy.ansible.com/blackstar257/selinux/

License:BSD 2-Clause "Simplified" License