diff --git a/tasks/system/forwarding.yml b/tasks/system/forwarding.yml index e059727..c624353 100644 --- a/tasks/system/forwarding.yml +++ b/tasks/system/forwarding.yml @@ -7,7 +7,7 @@ sysctl_set: true state: present reload: true - when: not ( lookup('env', 'IN_MOLECULE') ) | d(true, true) ) | bool + when: not lookup('env', 'IN_MOLECULE') | d(false, true) | bool - name: Set IPv6 forwarding in the sysctl file and reload if necessary sysctl: @@ -17,5 +17,5 @@ state: present reload: true when: - not ( lookup('env', 'IN_MOLECULE') | d(true, true) ) | bool + not lookup('env', 'IN_MOLECULE') | d(false, true) | bool and openvpn_ipv6_server is defined diff --git a/templates/server.conf.j2 b/templates/server.conf.j2 index 99a282d..ca52b05 100644 --- a/templates/server.conf.j2 +++ b/templates/server.conf.j2 @@ -14,9 +14,6 @@ port {{ openvpn_port }} # TCP or UDP server? proto {{ openvpn_proto }} -{% if openvpn_ipv6_enabled %} -proto {{ openvpn_proto }}6 -{% endif %} {% if openvpn_ipv6_enabled | bool %} proto {{ openvpn_proto }}6