You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
597 B

9 years ago
  1. ---
  2. - name: restart calico-node
  3. service: name=calico-node state=restarted
  4. - name: restart docker
  5. service: name=docker state=restarted
  6. - name: restart flannel
  7. service: name=flannel state=restarted
  8. notify:
  9. - reload systemd
  10. - stop docker
  11. - delete docker0
  12. - start docker
  13. when: inventory_hostname in groups['kube-node']
  14. - name: stop docker
  15. service: name=docker state=stopped
  16. - name: delete docker0
  17. command: ip link delete docker0
  18. ignore_errors: yes
  19. - name: start docker
  20. service: name=docker state=started
  21. - name : reload systemd
  22. shell: systemctl daemon-reload