Skip to content

Commit

Permalink
[IMP]cleanup networks
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeBye authored and vinkdong committed Nov 19, 2018
1 parent 147bde5 commit 13bf273
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions roles/base/reset/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
tags:
- iptables

- name: cleanup networks
shell: "ip link del flannel.1; ip link del cni0;"
ignore_errors: true

- name: reset | delete some files and directories
file:
path: "{{ item }}"
Expand All @@ -105,8 +109,8 @@
- /etc/nginx
- /opt/cni
- /var/log/pods
- "/usr/local/bin/etcd"
- "/usr/local/bin/etcdctl"
- /usr/local/bin/etcd
- /usr/local/bin/etcdctl
- /usr/local/bin/cfssl
- /usr/local/bin/cfssljson
- /usr/local/bin/cfssl-certinfo
Expand All @@ -127,7 +131,10 @@

- name: reset | Restart network
service:
name: network
name: "{{item}}"
state: restarted
tags:
with_items:
- networking
- network
tags:
- network

0 comments on commit 13bf273

Please sign in to comment.