Skip to content

Commit

Permalink
Can't validate in Docker: Could not load /.../modules.dep.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Sep 5, 2018
1 parent 6411d7f commit 198b454
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
dest: "{{ firewall_iptables_rulefile }}"
validate: "iptables-restore --test %s"
when:
- ansible_virtualization_type != "docker"
- firewall_services is defined
- firewall_service == "iptables"
loop_control:
Expand Down
2 changes: 1 addition & 1 deletion vars/Alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ firewall_packages:
- firewalld
- ufw

firewall_iptables_rulefile: /etc/iptables.conf
firewall_iptables_rulefile: /etc/iptables/rules-save

firewall_service: iptables

0 comments on commit 198b454

Please sign in to comment.