소스 검색

Reset selinux context on /var/lib/origin/openshift.common.volumes

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1450167
Scott Dodson 8 년 전
부모
커밋
0d4f8642e0
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      roles/openshift_node_upgrade/tasks/main.yml

+ 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