From 0d4f8642e01ca676eec6861bc326e55f3f540c94 Mon Sep 17 00:00:00 2001 From: Scott Dodson Date: Thu, 11 May 2017 13:14:57 -0400 Subject: Reset selinux context on /var/lib/origin/openshift.common.volumes Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1450167 --- roles/openshift_node_upgrade/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'roles/openshift_node_upgrade') diff --git a/roles/openshift_node_upgrade/tasks/main.yml b/roles/openshift_node_upgrade/tasks/main.yml index 94c97d0a5..a41a97e01 100644 --- a/roles/openshift_node_upgrade/tasks/main.yml +++ b/roles/openshift_node_upgrade/tasks/main.yml @@ -127,6 +127,12 @@ - openshift_disable_swap | default(true) | bool # End Disable Swap Block +- name: Reset selinux context + command: restorecon -RF {{ openshift.common.data_dir }}/openshift.local.volumes + when: + - ansible_selinux is defined + - ansible_selinux.status == 'enabled' + # Restart all services - include: restart.yml -- cgit v1.2.3