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.

26 lines
483 B

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. ---
  2. - name: restart docker
  3. command: /bin/true
  4. notify:
  5. - reload systemd
  6. - reload docker
  7. - reload kubelet
  8. - name: delete default docker bridge
  9. command: ip link delete docker0
  10. ignore_errors: yes
  11. notify: restart docker
  12. - name : reload systemd
  13. shell: systemctl daemon-reload
  14. when: ansible_service_mgr == "systemd"
  15. - name: reload docker
  16. service:
  17. name: docker
  18. state: restarted
  19. - name: reload kubelet
  20. service:
  21. name: kubelet
  22. state: restarted