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:
|
2016-07-29 09:46:24 +00:00
|
|
|
- etcd | 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-29 09:46:24 +00:00
|
|
|
- name: etcd | reload systemd
|
2016-01-19 14:23:19 +00:00
|
|
|
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-11-18 22:08:19 +00:00
|
|
|
- name: reload etcd
|
|
|
|
service:
|
|
|
|
name: etcd
|
|
|
|
state: restarted
|
|
|
|
when: is_etcd_master
|
|
|
|
|
2016-07-19 13:45:37 +00:00
|
|
|
- name: wait for etcd up
|
2016-11-09 10:44:41 +00:00
|
|
|
uri: url="https://{% if is_etcd_master %}{{ etcd_address }}{% else %}127.0.0.1{% endif %}:2379/health" validate_certs=no
|
2016-07-19 13:45:37 +00:00
|
|
|
register: result
|
2016-11-09 10:31:12 +00:00
|
|
|
until: result.status is defined and result.status == 200
|
2016-07-19 13:45:37 +00:00
|
|
|
retries: 10
|
|
|
|
delay: 5
|
2016-06-24 12:25:16 +00:00
|
|
|
|
2016-11-09 10:44:41 +00:00
|
|
|
- name: set etcd_secret_changed
|
|
|
|
set_fact:
|
|
|
|
etcd_secret_changed: true
|
|
|
|
|
2016-11-25 15:58:43 +00:00
|
|
|
- name: set ext_etcd_secret_changed
|
|
|
|
set_fact:
|
|
|
|
ext_etcd_secret_changed: true
|