k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
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
29 lines
651 B
---
|
|
- name: restart etcd
|
|
command: /bin/true
|
|
notify:
|
|
- etcd | reload systemd
|
|
- reload etcd
|
|
- wait for etcd up
|
|
|
|
- name: etcd | reload systemd
|
|
command: systemctl daemon-reload
|
|
when: ansible_service_mgr == "systemd"
|
|
|
|
- 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
|
|
until: result.status is defined and result.status == 200
|
|
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
|
|
|