summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node_upgrade
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-05-11 13:14:57 -0400
committerScott Dodson <sdodson@redhat.com>2017-05-11 17:24:14 -0400
commit0d4f8642e01ca676eec6861bc326e55f3f540c94 (patch)
treec9c4392e19f1c78765931d9a17f212acf7b519f4 /roles/openshift_node_upgrade
parent69ec61ccd272689360c6798c15a1204a92dd44b6 (diff)
downloadopenshift-0d4f8642e01ca676eec6861bc326e55f3f540c94.tar.gz
openshift-0d4f8642e01ca676eec6861bc326e55f3f540c94.tar.bz2
openshift-0d4f8642e01ca676eec6861bc326e55f3f540c94.tar.xz
openshift-0d4f8642e01ca676eec6861bc326e55f3f540c94.zip
Reset selinux context on /var/lib/origin/openshift.common.volumes
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1450167
Diffstat (limited to 'roles/openshift_node_upgrade')
-rw-r--r--roles/openshift_node_upgrade/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
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