summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/kubernetes/roles/2flannel/tasks/pre-upgrade.yml
blob: a49002fe7de980e173a11442a3c65d700bb75aa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: 2Flannel pre-upgrade | Purge legacy flannel systemd unit file
  file:
    path: "/etc/systemd/system/docker.service.d/flannel-options.conf"
    state: absent
  notify:
    - 2Flannel | delete default docker bridge

- name: 2Flannel pre-upgrade | Purge legacy Flannel static pod manifest
  file:
    path: "{{ kube_manifest_dir }}/flannel-pod.manifest"
    state: absent
  notify:
    - 2Flannel | delete flannel interface