Skip to content
main.yml 555 B
Newer Older
Smaine Kahlouch's avatar
Smaine Kahlouch committed
---
- name: restart systemd-calico-node
  command: /bin/true
  notify:
    - reload systemd
    - restart calico-node

Smaine Kahlouch's avatar
Smaine Kahlouch committed
- name: restart systemd-docker
  command: /bin/true
Smaine Kahlouch's avatar
Smaine Kahlouch committed
  notify:
    - reload systemd
Smaine Kahlouch's avatar
Smaine Kahlouch committed
    - restart docker
Smaine Kahlouch's avatar
Smaine Kahlouch committed

Smaine Kahlouch's avatar
Smaine Kahlouch committed
- name: delete default docker bridge
Smaine Kahlouch's avatar
Smaine Kahlouch committed
  command: ip link delete docker0
  ignore_errors: yes
Smaine Kahlouch's avatar
Smaine Kahlouch committed
  notify: restart docker
Smaine Kahlouch's avatar
Smaine Kahlouch committed

Smaine Kahlouch's avatar
Smaine Kahlouch committed
- name : reload systemd
  shell: systemctl daemon-reload

- name: restart calico-node
  service:
    name: calico-node
    state: restarted

- name: restart docker
  service:
    name: docker
    state: restarted