From 694d0779d3c15b99100d11d0d3d79a9817fd21ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Vi=C3=B1ar=20Ulriksen?= Date: Thu, 14 May 2020 19:32:37 -0300 Subject: [PATCH] Ensure ip_forward when deploying with the role, not when testing with molecule. Closes #159 --- tasks/system/forwarding.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/system/forwarding.yml b/tasks/system/forwarding.yml index 8d1a73a..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