Skip to content

Commit

Permalink
fix task fail in case 'net.ipv6.conf.all.disable_ipv6' is not defined…
Browse files Browse the repository at this point in the history
… in sysctl_config dict
  • Loading branch information
fitz123 committed May 21, 2016
1 parent 0f8937c commit 2f7a97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/ufw.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Set to yes to apply rules to support IPv6 (no means only IPv6 on loopback
# accepted). You will need to 'disable' and then 'enable' the firewall for
# the changes to take affect.
IPV6={{ 'no' if sysctl_config['net.ipv6.conf.all.disable_ipv6'] == 1 else 'yes' }}
IPV6={{ 'no' if sysctl_config['net.ipv6.conf.all.disable_ipv6'] is defined and sysctl_config['net.ipv6.conf.all.disable_ipv6'] == 1 else 'yes' }}

# Set the default input policy to ACCEPT, DROP, or REJECT. Please note that if
# you change this you will most likely want to adjust your rules.
Expand Down

0 comments on commit 2f7a97f

Please sign in to comment.