You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In module ansible_galaxy_install there is no update functionality, there is only force: true option that will report changed to all collections even if they were not updated. This probably also applies to roles and not only collections.
There should be a way to update collections and report only updated collections as changed: true.
This was easy to accomplish using ansible-galaxy command and a simple changed_when.
In essence the module ansible_galaxy_install is less usable than the ansible-galaxy command.
Issue Type
Feature Idea
Component Name
ansible_galaxy_install
Additional Information
Code of Conduct
I agree to follow the Ansible Code of Conduct
The text was updated successfully, but these errors were encountered:
Thanks for your suggestion!
You are correct, the module does not have that functionality. When this was first implemented we had to keep compatibility with Ansible 2.9, and the -U (upgrade) option only came out in ansible-core 2.11.
I will try and add the upgrade in the next couple of days, but while looking into the module I found some refactors to make, I need those to be merged before I make more changes. Watch this space.
Summary
In module
ansible_galaxy_install
there is no update functionality, there is onlyforce: true
option that will report changed to all collections even if they were not updated. This probably also applies to roles and not only collections.There should be a way to update collections and report only updated collections as
changed: true
.This was easy to accomplish using
ansible-galaxy
command and a simplechanged_when
.In essence the module
ansible_galaxy_install
is less usable than theansible-galaxy
command.Issue Type
Feature Idea
Component Name
ansible_galaxy_install
Additional Information
Code of Conduct
The text was updated successfully, but these errors were encountered: