-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm testing this, but the conditional still returns true and the task is skipped
tasks/system/forwarding.yml
Outdated
@@ -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(true, true) ) | bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you get to try this? It gives me an error:
FAILED! => {"msg": "The conditional check 'not ( lookup('env', 'IN_MOLECULE') ) | d(true, true) ) | bool' failed. The error was: template error while templating string: unexpected ')'.
There is a parenthesis to spare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose it was a typing error, and the intention was to leave it as below (line 20)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After reaching the same conclusion, I see that you had already solved it and commented here
The correct way for it to work in both scenarios (normal and molecule test) is:
when: not lookup('env', 'IN_MOLECULE') | d(false, true) | bool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, It was a failed commit. Fix hereafter. Maybe we can stash commits for merge.
Let's abandon the present PR and work on PR #6. |
Accordig to the issue #159 at the upstream role, I propose this patch.
Conforme a la issue #159 del rol upstream, propongo este patch.