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

always force galaxy to install collections #164

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

richm
Copy link
Contributor

@richm richm commented Apr 10, 2024

ansible-galaxy 2.16 will always look in system paths, even if using
ANSIBLE_COLLECTIONS_PATH. So if you have the ansible package installed,
galaxy will not install the collections used by the role in the .tox path
if the collections are provided by ansible. Use --force-with-deps if
supported by ansible-galaxy, otherwise, use --force.

Signed-off-by: Rich Megginson [email protected]

ansible-galaxy 2.16 will always look in system paths, even if using
`ANSIBLE_COLLECTIONS_PATH`.  So if you have the `ansible` package installed,
galaxy will not install the collections used by the role in the .tox path
if the collections are provided by `ansible`.  Use `--force-with-deps` if
supported by `ansible-galaxy`, otherwise, use `--force`.

Signed-off-by: Rich Megginson <[email protected]>
@richm richm requested a review from spetrosi April 10, 2024 00:12
@richm
Copy link
Contributor Author

richm commented Apr 10, 2024

@spetrosi not sure if you have run into this, but this is required on fedora 39 with ansible-galaxy 2.16

@spetrosi
Copy link
Contributor

I didn't bump into this yet, I have ansible-core-2.15 installed. Thanks for the fix

@richm richm merged commit b3a4626 into linux-system-roles:main Apr 10, 2024
6 checks passed
@richm richm deleted the force-galaxy branch April 10, 2024 12:56
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