Browse Source

Merge pull request #2934 from sdodson/etcd3-v2

etcd_upgrade: Simplify package installation
Scott Dodson 8 years ago
parent
commit
d4771b1a9a
1 changed files with 4 additions and 7 deletions
  1. 4 7
      playbooks/common/openshift-cluster/upgrades/etcd/rhel_tasks.yml

+ 4 - 7
playbooks/common/openshift-cluster/upgrades/etcd/rhel_tasks.yml

@@ -2,13 +2,10 @@
 - name: Verify cluster is healthy pre-upgrade
   command: "etcdctl --cert-file /etc/etcd/peer.crt --key-file /etc/etcd/peer.key --ca-file /etc/etcd/ca.crt -C https://{{ openshift.common.hostname }}:2379 cluster-health"
 
-- name: Update etcd package but exclude etcd3
-  command: "{{ ansible_pkg_mgr }} install -y etcd-{{ upgrade_version }}\\* --exclude etcd3"
-  when: upgrade_version | version_compare('3.0','<')
-
-- name: Update etcd package not excluding etcd3
-  command: "{{ ansible_pkg_mgr }} install -y etcd3-{{ upgrade_version }}\\*"
-  when: not upgrade_version | version_compare('3.0','<')
+- name: Update etcd RPM
+  package:
+    name: etcd-{{ upgrade_version }}*
+    state: latest
 
 - name: Restart etcd
   service: