Browse Source

Stage cri-o packages

Scott Dodson 6 years ago
parent
commit
80188672c9
1 changed files with 7 additions and 0 deletions
  1. 7 0
      roles/openshift_node/tasks/upgrade_pre.yml

+ 7 - 0
roles/openshift_node/tasks/upgrade_pre.yml

@@ -34,5 +34,12 @@
   - l_docker_upgrade is defined
   - l_docker_upgrade | bool
 
+- name: Stage cri-o updates
+  command: "{{ ansible_pkg_mgr }} install -y --downloadonly cri-o"
+  register: result
+  until: result is succeeded
+  when:
+  - openshift_use_crio | default(False)
+
 - import_tasks: upgrade/rpm_upgrade.yml
   when: not openshift_is_atomic | bool