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

38 lines
663 B
YAML
Raw Normal View History

2015-10-03 20:19:50 +00:00
---
2016-01-25 20:09:42 +00:00
- name: restart calico-node
2016-01-04 13:22:18 +00:00
command: /bin/true
notify:
- reload systemd
2016-01-25 20:09:42 +00:00
- reload calico-node
2016-01-04 13:22:18 +00:00
2016-01-25 20:09:42 +00:00
- name: restart docker
2016-01-09 09:45:50 +00:00
command: /bin/true
2015-10-03 20:19:50 +00:00
notify:
- reload systemd
2016-01-25 20:09:42 +00:00
- reload docker
- reload kubelet
2015-10-03 20:19:50 +00:00
2016-01-09 09:45:50 +00:00
- name: delete default docker bridge
2015-10-03 20:19:50 +00:00
command: ip link delete docker0
ignore_errors: yes
2016-01-09 09:45:50 +00:00
notify: restart docker
2015-10-03 20:19:50 +00:00
2016-01-09 09:45:50 +00:00
- name : reload systemd
shell: systemctl daemon-reload
2016-01-25 20:09:42 +00:00
when: init_system == "systemd"
2016-01-09 09:45:50 +00:00
2016-01-25 20:09:42 +00:00
- name: reload calico-node
2016-01-09 09:45:50 +00:00
service:
name: calico-node
state: restarted
2016-01-25 20:09:42 +00:00
- name: reload docker
2016-01-09 09:45:50 +00:00
service:
name: docker
state: restarted
2016-01-25 20:09:42 +00:00
- name: reload kubelet
service:
name: kubelet
state: restarted