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

Conversation

ulvida
Copy link
Member

@ulvida ulvida commented May 14, 2020

Accordig to the issue #159 at the upstream role, I propose this patch.


Conforme a la issue #159 del rol upstream, propongo este patch.

@santiagomr santiagomr self-assigned this May 15, 2020
@santiagomr santiagomr self-requested a review May 15, 2020 16:24
Copy link
Member

@santiagomr santiagomr left a 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

@@ -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
Copy link
Member

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

Copy link
Member

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)

Copy link
Member

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

Copy link
Member Author

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.

@ulvida
Copy link
Member Author

ulvida commented May 17, 2020

Let's abandon the present PR and work on PR #6.

@ulvida ulvida closed this May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants