Prechádzať zdrojové kódy

Merge pull request #4165 from sdodson/BZ1450167

Merged by openshift-bot
OpenShift Bot 8 rokov pred
rodič
commit
eedd16af0a

+ 6 - 0
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