Skip to content

Commit

Permalink
加载环境变量, 避免 iptables 命令不存在 (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
itswl authored Dec 6, 2022
1 parent 82c6bc5 commit daf2bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit daf2bba

Please sign in to comment.