瀏覽代碼

Ensure cri-o is upgraded

Update package command to use 'latest' which will ensure packages are
upgraded to the latest version, even if they are already installed.
Russell Teague 5 年之前
父節點
當前提交
0a702508d2
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      roles/openshift_node/tasks/install.yml

+ 2 - 1
roles/openshift_node/tasks/install.yml

@@ -2,6 +2,7 @@
 - name: Install openshift support packages
   package:
     name: "{{ openshift_node_support_packages | join(',') }}"
+    state: latest
     update_cache: true
   async: 3600
   poll: 30
@@ -47,7 +48,7 @@
   - name: Install openshift packages
     package:
       name: "{{ openshift_node_packages | join(',') }}"
-      state: present
+      state: latest
     async: 3600
     poll: 30
     register: result