chris1984.selinux
SELinux
配置主机上的SELinux。
要求
此角色需要Ansible 2.0或更高版本。
角色变量
- 所有变量都位于role/defaults/main.yml文件中
| 名称 | 默认值 | 描述 |
|-----------------|-----------|------------------------------------------------|
| selinux_policy | targeted | SELinux策略类型(targeted或mls) |
| selinux_state | permissive| SELinux状态(permissive、enforcing或disabled) |
依赖关系
无
示例剧本
在宽松模式下配置SELinux。
- hosts: all
roles:
- { role: chris1984.selinux }
禁用SELinux
- hosts: all
roles:
- { role: chris1984.selinux, selinux_state: disabled }
配置SELinux使用mls策略并处于强制模式
- hosts: all
roles:
- { role: chris1984.selinux, selinux_policy: mls, selinux_state: enforcing }
许可证
MIT
作者信息
- Chris Roberts - chrobert@redhat.com - https://www.linkedin.com/in/croberts84/
- 在Redhat工作,参与Foreman/Katello项目,并维护fog-vsphere。
安装
ansible-galaxy install chris1984.selinux
许可证
Unknown
下载
107
拥有者
Senior Software Developer - Red Hat Satellite, Hammer-cli-katello, Azure, fog-vsphere.