upgrade_static.yml 562 B

1234567891011121314151617181920212223242526
  1. ---
  2. # PREREQ Node service is ready to run static pods
  3. # INPUT r_etcd_upgrade_version
  4. - name: Verify cluster is healthy pre-upgrade
  5. command: "{{ etcdctlv2 }} cluster-health"
  6. - name: Stop etcd
  7. systemd:
  8. name: "{{ etcd_service }}"
  9. state: stopped
  10. - name: Remove old service file
  11. file:
  12. path: "{{ etcd_service }}"
  13. state: absent
  14. - name: Configure static definition
  15. import_tasks: ../static.yml
  16. - name: Verify cluster is healthy
  17. command: "{{ etcdctlv2 }} cluster-health"
  18. register: etcdctl
  19. until: etcdctl.rc == 0
  20. retries: 3
  21. delay: 10