fedora_tasks.yml 781 B

1234567891011121314151617181920212223
  1. ---
  2. # F23 GA'd with etcd 2.0, currently has 2.2 in updates
  3. # F24 GA'd with etcd-2.2, currently has 2.2 in updates
  4. # F25 Beta currently has etcd 3.0
  5. - name: Verify cluster is healthy pre-upgrade
  6. 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"
  7. - name: Update etcd
  8. package:
  9. name: "etcd"
  10. state: "latest"
  11. - name: Restart etcd
  12. service:
  13. name: etcd
  14. state: restarted
  15. - name: Verify cluster is healthy
  16. 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"
  17. register: etcdctl
  18. until: etcdctl.rc == 0
  19. retries: 3
  20. delay: 10