2016-01-30 23:04:47 +08:00
|
|
|
---
|
|
|
|
- name: restart calico-node
|
|
|
|
command: /bin/true
|
|
|
|
notify:
|
|
|
|
- reload systemd
|
|
|
|
- reload calico-node
|
|
|
|
|
|
|
|
- name : reload systemd
|
|
|
|
shell: systemctl daemon-reload
|
2016-02-13 18:17:20 +08:00
|
|
|
when: ansible_service_mgr == "systemd"
|
2016-01-30 23:04:47 +08:00
|
|
|
|
|
|
|
- name: reload calico-node
|
|
|
|
service:
|
|
|
|
name: calico-node
|
|
|
|
state: restarted
|
2016-02-12 06:08:16 +08:00
|
|
|
sleep: 10
|