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

Fixes for recent ansible versions #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jinnko
Copy link

@jinnko jinnko commented Feb 9, 2018

A series of fixes were needed to get this module working on recent ansible versions (at least 2.4.3).

First, a fix for conditional logic by removing var|d() structures. The var|d() pattern isn't working as intended. Have verified that changing the conditional commands to use the is defined is correctly
evaluating the conditions.

Second, replace split|last|first with urlsplit() filter as the pattern is no longer working in ansible-2.4.3. In any case the use of the urlsplit() filter is much more readable.

The `var|d()` pattern isn't working as intended.  Have verified that
changing the conditional commands to use the `is defined` is correctly
evaluating the conditions.
The `split|last|first` pattern is no longer working in ansible-2.4.3.  In
any case the use of the `urlsplit()` filter is much more readable.
@drybjed
Copy link
Member

drybjed commented Feb 9, 2018

Hey, thanks for the PR! At the moment main development of the DebOps roles is done in the DebOps monorepo, would you consider posting your PRs to that repository instead?

I didn't know about the urlsplit filter, I'll check it out, thanks.

Some of the fixes for the debops.hashicorp role already happened in the monorepo, you can also see all of the recent changes in the role, just to catch up with the development.

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