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

dev3
WeiLai 2022-12-06 12:50:41 +08:00 committed by GitHub
parent 82c6bc595e
commit daf2bba1fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
- name: flush-iptables
shell: "iptables -P INPUT ACCEPT \
shell: "source /etc/profile; iptables -P INPUT ACCEPT \
&& iptables -P FORWARD ACCEPT \
&& iptables -P OUTPUT ACCEPT \
&& iptables -F && iptables -X \