Merge pull request #633 from bodepd/etcd_fix

Ensure that etcd health checks always pass
This commit is contained in:
Bogdan Dobrelya 2016-11-21 10:29:35 +01:00 committed by GitHub
commit 769566f36c

View file

@ -10,6 +10,12 @@
command: systemctl daemon-reload
when: ansible_service_mgr == "systemd"
- name: reload etcd
service:
name: etcd
state: restarted
when: is_etcd_master
- name: wait for etcd up
uri: url="https://{% if is_etcd_master %}{{ etcd_address }}{% else %}127.0.0.1{% endif %}:2379/health" validate_certs=no
register: result
@ -17,12 +23,6 @@
retries: 10
delay: 5
- name: reload etcd
service:
name: etcd
state: restarted
when: is_etcd_master
- name: set etcd_secret_changed
set_fact:
etcd_secret_changed: true