You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
651 B

  1. ---
  2. - name: restart etcd
  3. command: /bin/true
  4. notify:
  5. - etcd | reload systemd
  6. - reload etcd
  7. - wait for etcd up
  8. - name: etcd | reload systemd
  9. command: systemctl daemon-reload
  10. when: ansible_service_mgr == "systemd"
  11. - name: reload etcd
  12. service:
  13. name: etcd
  14. state: restarted
  15. when: is_etcd_master
  16. - name: wait for etcd up
  17. uri: url="https://{% if is_etcd_master %}{{ etcd_address }}{% else %}127.0.0.1{% endif %}:2379/health" validate_certs=no
  18. register: result
  19. until: result.status is defined and result.status == 200
  20. retries: 10
  21. delay: 5
  22. - name: set etcd_secret_changed
  23. set_fact:
  24. etcd_secret_changed: true