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

Fix config templating on Ansible 5 #448

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

Blefish
Copy link
Contributor

@Blefish Blefish commented Dec 8, 2021

In Ansible 5, lookup function produces string output (new default? I couldn't find any confirmation about this). Applying to_nice_json provides a double encapsulated JSON output, which is invalid for Consul.

I'd like some feedback as I have only tested this on Linux so far with Ansible 5. Not sure if this is backwards compatible or maybe Ansible introduced a breaking change unindentionally.

Some more info here: ansible/ansible#76443

@lanefu
Copy link
Contributor

lanefu commented Dec 27, 2021

@Blefish What is Ansible 5?

Copy link

@jlec jlec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and works here with ansible-5/ansible-core-2.12

@jlec
Copy link

jlec commented Dec 29, 2021

@lanefu Ansible-5 is the latest release of Ansible.

@lanefu
Copy link
Contributor

lanefu commented Dec 30, 2021

hmmm I guess I live too much in the world of Ansible core

@lanefu lanefu merged commit ecb3022 into ansible-collections:master Dec 30, 2021
@jlec
Copy link

jlec commented Dec 30, 2021

Thanks for the fix and merging.

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.

None yet

3 participants