Skip to content
Snippets Groups Projects
Commit ad58e08a authored by Antoine Legrand's avatar Antoine Legrand Committed by GitHub
Browse files

Merge pull request #1049 from alop/selinux

Safe disable SELinux
parents b84cc146 0bfc2d0f
No related branches found
No related tags found
No related merge requests found
...@@ -125,9 +125,15 @@ ...@@ -125,9 +125,15 @@
tags: bootstrap-os tags: bootstrap-os
# Todo : selinux configuration # Todo : selinux configuration
- name: Confirm selinux deployed
stat:
path: /etc/selinux/config
when: ansible_os_family == "RedHat"
register: slc
- name: Set selinux policy to permissive - name: Set selinux policy to permissive
selinux: policy=targeted state=permissive selinux: policy=targeted state=permissive
when: ansible_os_family == "RedHat" when: ansible_os_family == "RedHat" and slc.stat.exists == True
changed_when: False changed_when: False
tags: bootstrap-os tags: bootstrap-os
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment