diff options
author | Steve Milner <smilner@redhat.com> | 2017-10-26 20:27:19 -0400 |
---|---|---|
committer | Steve Milner <smilner@redhat.com> | 2017-10-26 20:31:47 -0400 |
commit | 999efa7376326fef5a26a60d1873ab4e8795d4a7 (patch) | |
tree | f6f0355b994e3f215cb2f1bb1a8b21e7fd9c0864 /roles | |
parent | be7d536260d562e3fff6d6ebf762f6bc2e4e9879 (diff) | |
download | openshift-999efa7376326fef5a26a60d1873ab4e8795d4a7.tar.gz openshift-999efa7376326fef5a26a60d1873ab4e8795d4a7.tar.bz2 openshift-999efa7376326fef5a26a60d1873ab4e8795d4a7.tar.xz openshift-999efa7376326fef5a26a60d1873ab4e8795d4a7.zip |
crio: restorcon /var/lib/containers
When using the cri-o system container some items in /var/lib/containers
end up having incorrect labels. This runs restorecon -R
/var/lib/containers after the system container is installed.
Diffstat (limited to 'roles')
-rw-r--r-- | roles/docker/tasks/systemcontainer_crio.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/docker/tasks/systemcontainer_crio.yml b/roles/docker/tasks/systemcontainer_crio.yml index 13bbd359e..ee2048f7a 100644 --- a/roles/docker/tasks/systemcontainer_crio.yml +++ b/roles/docker/tasks/systemcontainer_crio.yml @@ -166,6 +166,10 @@ dest: /etc/cni/net.d/openshift-sdn.conf src: 80-openshift-sdn.conf.j2 +- name: Fix SELinux Permissions on /var/lib/containers + command: "restorecon -R /var/lib/containers/" + changed_when: false + - name: Start the CRI-O service systemd: name: "cri-o" |