Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure ip_forward when deploying with th role. Closes #159 #4

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 0 additions & 61 deletions tasks/configure.yml

This file was deleted.

4 changes: 2 additions & 2 deletions tasks/system/forwarding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
3 changes: 0 additions & 3 deletions templates/server.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down