Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 324 Bytes
- name: Check if selinux is installed
command: getenforce
register: command_result
changed_when: False
ignore_errors: True
- name: Install libselinux-python
yum: name={{ item }}
- epel-release
- libselinux-python
when: command_result|success and command_result.stdout != 'Disabled'