Skip to content

Commit

Permalink
Ensure ip_forward when deploying with the role, not when testing with…
Browse files Browse the repository at this point in the history
… molecule. Closes Stouts#159
  • Loading branch information
ulvida committed May 17, 2020
1 parent 647dc56 commit 694d077
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 694d077

Please sign in to comment.