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-06-24 12:25:16 +00:00
|
|
|
- start etcd
|
2016-01-25 01:01:25 +00:00
|
|
|
- reload etcd
|
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-06-24 12:25:16 +00:00
|
|
|
- name: start etcd
|
|
|
|
service:
|
|
|
|
name: etcd
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
|
|
|
|
2016-01-25 01:01:25 +00:00
|
|
|
- name: reload etcd
|
2016-01-19 14:23:19 +00:00
|
|
|
service:
|
|
|
|
name: etcd
|
2016-06-24 12:25:16 +00:00
|
|
|
state: "{{ 'restarted' if etcd_deployment_type == 'host' else 'reloaded' }}"
|