chris1984.selinux
SELinux
Sets up SELinux on servers.
Requirements
You need Ansible version 2.0 or newer.
Role Variables
- Find all variables in role/defaults/main.yml
| Name | Default | Description |
|----------------|------------|---------------------------------------------------|
| selinux_policy | targeted | Type of SELinux policy (targeted or mls) |
| selinux_state | permissive | State of SELinux (permissive, enforcing, or disabled) |
Dependencies
None
Example Playbook
To set SELinux in permissive mode:
- hosts: all
roles:
- { role: chris1984.selinux }
To disable SELinux:
- hosts: all
roles:
- { role: chris1984.selinux, selinux_state: disabled }
To configure SELinux with mls policy and enforcing mode:
- hosts: all
roles:
- { role: chris1984.selinux, selinux_policy: mls, selinux_state: enforcing}
License
MIT
Author Information
- Chris Roberts - chrobert@redhat.com - https://www.linkedin.com/in/croberts84/
- Works at Red Hat on the Foreman/Katello projects and also manages fog-vsphere.
Installa
ansible-galaxy install chris1984.selinux
Licenza
Unknown
Download
107
Proprietario
Senior Software Developer - Red Hat Satellite, Hammer-cli-katello, Azure, fog-vsphere.