summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-12-08 12:52:04 -0500
committerGitHub <noreply@github.com>2017-12-08 12:52:04 -0500
commit8b484281b6052b82869da8cc691e427ec9e1a0fc (patch)
treef8d9a77d4a22caf1567b5b83cdbd83c5affd36fa /roles/openshift_node
parent0beab180d22f28f3f529ca0252f23bb92a7b69a7 (diff)
parent40d63b7dfa8b88ad2459a86b436385612dbb2150 (diff)
downloadopenshift-8b484281b6052b82869da8cc691e427ec9e1a0fc.tar.gz
openshift-8b484281b6052b82869da8cc691e427ec9e1a0fc.tar.bz2
openshift-8b484281b6052b82869da8cc691e427ec9e1a0fc.tar.xz
openshift-8b484281b6052b82869da8cc691e427ec9e1a0fc.zip
Merge pull request #6316 from giuseppe/fix-syscontainers-installation
syscontainers: fix CRI-O and container-engine installation
Diffstat (limited to 'roles/openshift_node')
-rw-r--r--roles/openshift_node/tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index d9f3e920d..32c5f495f 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -44,6 +44,15 @@
- name: include node installer
include_tasks: install.yml
+- name: Restart cri-o
+ systemd:
+ name: cri-o
+ enabled: yes
+ state: restarted
+ when: openshift_use_crio
+ register: task_result
+ failed_when: task_result|failed and 'could not find the requested service' not in task_result.msg|lower
+
- name: restart NetworkManager to ensure resolv.conf is present
systemd:
name: NetworkManager