Fix etcd restart and handler systemd tasks

Changed Wants=docker.service to docker.socket

Renamed handlers for reloading systemd to contain role in task name.
This commit is contained in:
Matthew Mosesohn
2016-07-29 12:46:24 +03:00
committed by Matthew Mosesohn
parent aa0d7ea5d0
commit 5668e5f767
9 changed files with 32 additions and 32 deletions

View File

@@ -2,18 +2,18 @@
- name: restart etcd
command: /bin/true
notify:
- reload systemd
- etcd | reload systemd
- reload etcd
- wait for etcd up
- name: restart etcd-proxy
command: /bin/true
notify:
- reload systemd
- etcd | reload systemd
- reload etcd-proxy
- wait for etcd up
- name: reload systemd
- name: etcd | reload systemd
command: systemctl daemon-reload
when: ansible_service_mgr == "systemd"