2016-01-19 22:23:19 +08:00
|
|
|
---
|
2016-01-25 09:01:25 +08:00
|
|
|
- name: restart etcd
|
2016-01-19 22:23:19 +08:00
|
|
|
command: /bin/true
|
|
|
|
notify:
|
|
|
|
- reload systemd
|
2016-01-25 09:01:25 +08:00
|
|
|
- reload etcd
|
2016-01-19 22:23:19 +08:00
|
|
|
|
|
|
|
- name: reload systemd
|
|
|
|
command: systemctl daemon-reload
|
2016-02-13 18:17:20 +08:00
|
|
|
when: ansible_service_mgr == "systemd"
|
2016-01-19 22:23:19 +08:00
|
|
|
|
2016-01-25 09:01:25 +08:00
|
|
|
- name: reload etcd
|
2016-01-19 22:23:19 +08:00
|
|
|
service:
|
|
|
|
name: etcd
|
|
|
|
state: restarted
|