Browse Source

Merge pull request #1049 from alop/selinux

Safe disable SELinux
pull/1048/merge
Antoine Legrand 7 years ago
committed by GitHub
parent
commit
ad58e08a41
1 changed files with 7 additions and 1 deletions
  1. 8
      roles/kubernetes/preinstall/tasks/main.yml

8
roles/kubernetes/preinstall/tasks/main.yml

@ -125,9 +125,15 @@
tags: bootstrap-os
# 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
selinux: policy=targeted state=permissive
when: ansible_os_family == "RedHat"
when: ansible_os_family == "RedHat" and slc.stat.exists == True
changed_when: False
tags: bootstrap-os

Loading…
Cancel
Save