Browse Source

Always install latest etcd for containerized hosts

Scott Dodson 8 years ago
parent
commit
ed7b94c19e
1 changed files with 5 additions and 3 deletions
  1. 5 3
      playbooks/common/openshift-cluster/upgrades/etcd/backup.yml

+ 5 - 3
playbooks/common/openshift-cluster/upgrades/etcd/backup.yml

@@ -41,9 +41,11 @@
         {{ avail_disk.stdout }} Kb available.
     when: (embedded_etcd | bool) and (etcd_disk_usage.stdout|int > avail_disk.stdout|int)
 
-  - name: Install etcd (for etcdctl)
-    package: name=etcd state=present
-    when: not openshift.common.is_atomic | bool
+  # for non containerized etcd is already installed, don't touch it, but for containerized
+  # but not atomic always get the latest
+  - name: Install latest text for containerized but not atomic
+    package: name=etcd state=latest
+    when: not openshift.common.is_atomic | bool and openshift.common.is_containerized
 
   - name: Generate etcd backup
     command: >