2016-01-19 14:23:19 +00:00
|
|
|
---
|
2016-01-25 01:01:25 +00:00
|
|
|
- name: restart etcd
|
2016-01-19 14:23:19 +00:00
|
|
|
command: /bin/true
|
|
|
|
notify:
|
|
|
|
- reload systemd
|
2016-01-25 01:01:25 +00:00
|
|
|
- reload etcd
|
2016-07-19 13:45:37 +00:00
|
|
|
- wait for etcd up
|
2016-01-19 14:23:19 +00:00
|
|
|
|
2016-07-11 14:05:05 +00:00
|
|
|
- name: restart etcd-proxy
|
|
|
|
command: /bin/true
|
|
|
|
notify:
|
|
|
|
- reload systemd
|
|
|
|
- reload etcd-proxy
|
2016-07-19 13:45:37 +00:00
|
|
|
- wait for etcd up
|
2016-07-11 14:05:05 +00:00
|
|
|
|
2016-01-19 14:23:19 +00:00
|
|
|
- name: reload systemd
|
|
|
|
command: systemctl daemon-reload
|
2016-02-13 10:17:20 +00:00
|
|
|
when: ansible_service_mgr == "systemd"
|
2016-01-19 14:23:19 +00:00
|
|
|
|
2016-07-19 13:45:37 +00:00
|
|
|
- name: wait for etcd up
|
2016-07-26 13:18:47 +00:00
|
|
|
uri: url="http://{% if is_etcd_master %}{{ etcd_address }}{% else %}127.0.0.1{% endif %}:2379/health"
|
2016-07-19 13:45:37 +00:00
|
|
|
register: result
|
|
|
|
until: result.status == 200
|
|
|
|
retries: 10
|
|
|
|
delay: 5
|
2016-06-24 12:25:16 +00:00
|
|
|
|
2016-01-25 01:01:25 +00:00
|
|
|
- name: reload etcd
|
2016-01-19 14:23:19 +00:00
|
|
|
service:
|
|
|
|
name: etcd
|
2016-07-19 13:45:37 +00:00
|
|
|
state: restarted
|
2016-07-11 14:05:05 +00:00
|
|
|
when: is_etcd_master
|
|
|
|
|
|
|
|
- name: reload etcd-proxy
|
|
|
|
service:
|
|
|
|
name: etcd-proxy
|
2016-07-19 13:45:37 +00:00
|
|
|
state: restarted
|
2016-07-11 14:05:05 +00:00
|
|
|
when: is_etcd_proxy
|