c12s-kubespray/roles/etcd/handlers/main.yml

23 lines
422 B
YAML
Raw Normal View History

---
2016-01-25 01:01:25 +00:00
- name: restart etcd
command: /bin/true
notify:
- reload systemd
- start etcd
2016-01-25 01:01:25 +00:00
- reload etcd
- name: reload systemd
command: systemctl daemon-reload
when: ansible_service_mgr == "systemd"
- name: start etcd
service:
name: etcd
enabled: yes
state: started
2016-01-25 01:01:25 +00:00
- name: reload etcd
service:
name: etcd
state: "{{ 'restarted' if etcd_deployment_type == 'host' else 'reloaded' }}"