mirror of https://github.com/easzlab/kubeasz.git
fix:清理iptables
parent
f17a20d079
commit
7bf48d26d7
|
@ -28,7 +28,10 @@
|
||||||
- "/etc/systemd/system/docker.service.requires/"
|
- "/etc/systemd/system/docker.service.requires/"
|
||||||
|
|
||||||
- name: 清理 iptables
|
- name: 清理 iptables
|
||||||
shell: iptables -F && iptables -X && iptables -F -t nat && iptables -X -t nat
|
shell: "iptables -F && iptables -X \
|
||||||
|
&& iptables -F -t nat && iptables -X -t nat \
|
||||||
|
&& iptables -F -t raw && iptables -X -t raw \
|
||||||
|
&& iptables -F -t mangle && iptables -X -t mangle"
|
||||||
|
|
||||||
- name: 清理网络
|
- name: 清理网络
|
||||||
shell: "ip link del docker0; ip link del tunl0; systemctl restart networking"
|
shell: "ip link del docker0; ip link del tunl0; systemctl restart networking"
|
||||||
|
|
|
@ -27,7 +27,10 @@
|
||||||
shell: systemctl enable docker
|
shell: systemctl enable docker
|
||||||
|
|
||||||
- name: flush-iptables
|
- name: flush-iptables
|
||||||
shell: iptables -F && iptables -X && iptables -F -t nat && iptables -X -t nat
|
shell: "iptables -F && iptables -X \
|
||||||
|
&& iptables -F -t nat && iptables -X -t nat \
|
||||||
|
&& iptables -F -t raw && iptables -X -t raw \
|
||||||
|
&& iptables -F -t mangle && iptables -X -t mangle"
|
||||||
|
|
||||||
- name: start-docker
|
- name: start-docker
|
||||||
shell: systemctl restart docker
|
shell: systemctl restart docker
|
||||||
|
|
Loading…
Reference in New Issue