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
  1. ---
  2. - name: delete default docker bridge
  3. command: ip link delete docker0
  4. ignore_errors: yes
  5. notify: restart docker
  6. - name: restart docker
  7. command: /bin/true
  8. notify:
  9. - reload systemd
  10. - reload docker
  11. - reload kubelet
  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