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

[Enabler] Inject environment variables into ansible-pytest so tests work with ansible-core 2.17.1 or later #1672

Closed
1 task done
fernandofloresg opened this issue Aug 27, 2024 · 1 comment
Assignees
Labels
Enabler Enabler task In Plan Issue has been accepted put into a planned release

Comments

@fernandofloresg
Copy link
Collaborator

fernandofloresg commented Aug 27, 2024

Is there an existing issue for this?

  • There are no existing issues.

Enabler description

Link to Epic : [Enabler] [Epic] Pipeline automation is not able to run on ansible-core 2.17.1 or later

As part of the effort to make the pipeline work with 2.17.1 or later, we need to implement a short term fix. For this task, we are looking to find a way to edit and inject our exports into this dictionary, it would be easy to do but would also be an ongoing effort to keep up with community changes. If you review this the return all_vars what you will notice is the dictionary representation of the play, in the dictionary is the environment variable mapping which is empty because our framework does not use playbooks, thus we could insert/update the dictionary with our exported environment vars. See below for that snippet. By printing the vars like so:.

This task will be considered as completed once we have a working pipeline with ansible core 2.17.1 using this fix.

Ansible module

No response

@fernandofloresg
Copy link
Collaborator Author

#1772 fixed this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enabler Enabler task In Plan Issue has been accepted put into a planned release
Projects
Development

No branches or pull requests

4 participants