加载环境变量, 避免 iptables 命令不存在 (#1203)

v3.3
WeiLai 2022-12-06 12:50:41 +08:00 committed by gjmzj
parent c8d7cb852a
commit e3d372717d
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@
template: src=daemon.json.j2 dest=/etc/docker/daemon.json template: src=daemon.json.j2 dest=/etc/docker/daemon.json
- name: flush-iptables - name: flush-iptables
shell: "iptables -P INPUT ACCEPT \ shell: "source /etc/profile; iptables -P INPUT ACCEPT \
&& iptables -P FORWARD ACCEPT \ && iptables -P FORWARD ACCEPT \
&& iptables -P OUTPUT ACCEPT \ && iptables -P OUTPUT ACCEPT \
&& iptables -F && iptables -X \ && iptables -F && iptables -X \