Skip to content

Commit

Permalink
Fixed setenforce issue in k8s/mesos/openshift systems
Browse files Browse the repository at this point in the history
command "setenforce 0" will be executed only if ansible_selinux.status
== 'enabled' in k8s/mesos/openshift systems

Change-Id: I16af4dcb553bff06b9e81208c40faf475eb4bddb
Closes-bug: #1689900
  • Loading branch information
ymariappan authored and Yuvaraja Mariappan committed May 12, 2017
1 parent 36bb08f commit 2946525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playbooks/roles/common/tasks/main.yml
Expand Up @@ -11,7 +11,7 @@

- name: Disable selinux for redhat systems
command: setenforce 0
when: ansible_os_family == 'RedHat'
when: cloud_orchestrator != 'openstack' and ansible_os_family == 'RedHat' and ansible_selinux.status == 'enabled'

- include: facts.yml
tags: always

0 comments on commit 2946525

Please sign in to comment.