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

feat(ansible_facts): replace injected facts 'ansible_' with dictionary 'ansible_facts' #304

Merged
merged 2 commits into from
Jan 7, 2021

Conversation

samasc30
Copy link
Contributor

@samasc30 samasc30 commented Oct 2, 2020

Following Ansible Documentation on Facts this MR replace injected variables prefixed with ansible_ with dictionary ansible_facts

Using facts with prefix was changed in Ansible 2.5, and should be disabled by default in future releases. In cases where users choose to force only ansible_facts to be used by setting inject_facts_as_vars to False, using older naming leads to errors when applying the role.

@samasc30 samasc30 requested a review from a team as a code owner October 2, 2020 10:02
@albertvaka
Copy link
Contributor

👋 Thanks for the patch! I've tested this on the oldest Ansible we support (2.6) and it works well even there, so I think we can merge it ✅

Thanks again!

@albertvaka albertvaka merged commit bbc14e8 into DataDog:master Jan 7, 2021
@samasc30 samasc30 deleted the ansible_facts branch January 7, 2021 20:00
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