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

Test multiple supported Ansible versions #729

Open
schurzi opened this issue Dec 5, 2023 · 2 comments
Open

Test multiple supported Ansible versions #729

schurzi opened this issue Dec 5, 2023 · 2 comments

Comments

@schurzi
Copy link
Contributor

schurzi commented Dec 5, 2023

Description

Currently we use the most recent Ansible version to run our tests. But our collection supports also older Ansible releases. To make sure we stay compatible, we need to add tests for the older Ansible versions. Since we already have a lot of tests, we should keep this to a minimum.

Solution

We have no clear solution to this.

Alternatives

Running our Playbooks without executing them against a specific host should cover a lot of possible issues. So using ansible-lint or something similar pinned to a specific Ansible version in a matrix build could be a good way to do this.

Additional information

No response

@dlouzan
Copy link
Contributor

dlouzan commented Jan 5, 2024

@schurzi As a hint, we currently address this internally with a combination of poetry, tox and https://github.com/enpaul/tox-poetry-installer.

/cc @nejch

@nejch
Copy link
Contributor

nejch commented Jan 5, 2024

Since poetry is not used here, even plain tox could do this and install different versions based on the tox environment.

Recently, hatch has also become more popular for python projects and supports tox-like environments (https://hatch.pypa.io/latest/environment/#dependencies).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants