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.

28 lines
610 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. - name: reload etcd
  11. service:
  12. name: etcd
  13. state: restarted
  14. when: is_etcd_master
  15. - name: wait for etcd up
  16. uri: url="https://{% if is_etcd_master %}{{ etcd_address }}{% else %}127.0.0.1{% endif %}:2379/health" validate_certs=no
  17. register: result
  18. until: result.status is defined and result.status == 200
  19. retries: 10
  20. delay: 5
  21. - name: set etcd_secret_changed
  22. set_fact:
  23. etcd_secret_changed: true