Browse Source

Make sure Docker is restarted after we have correctly configured the containerized systemd units

Brenton Leanhardt 9 years ago
parent
commit
ff06c2e87d
1 changed files with 5 additions and 1 deletions
  1. 5 1
      playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/pre.yml

+ 5 - 1
playbooks/common/openshift-cluster/upgrades/v3_1_to_v3_2/pre.yml

@@ -105,8 +105,12 @@
   - include: ../../../../../roles/openshift_master/handlers/main.yml
   - include: ../../../../../roles/openshift_node/handlers/main.yml
   roles:
+  # We want the cli role to evaluate so that the containerized oc/oadm wrappers
+  # are modified to use the correct image tag.  However, this can trigger a
+  # docker restart if new configuration is laid down which would immediately
+  # pull the latest image and defeat the purpose of these tasks.
   - openshift_cli
-  tasks:
+  pre_tasks:
   - name: Clean package cache
     command: "{{ ansible_pkg_mgr }} clean all"
     when: not openshift.common.is_atomic | bool