# How do you keep your ansible collections and roles from the galaxy  current ?

**URL:** <https://forum.ansible.com/t/how-do-you-keep-your-ansible-collections-and-roles-from-the-galaxy-current/36678>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [June 1, 2022, 7:30am UTC](https://forum.ansible.com/t/how-do-you-keep-your-ansible-collections-and-roles-from-the-galaxy-current/36678 "2022-06-01T07:30:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Norbert\_Klamann](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@Norbert\_Klamann](https://forum.ansible.com/u/Norbert_Klamann)\
**Post date:** [June 1, 2022, 7:30am UTC](https://forum.ansible.com/t/how-do-you-keep-your-ansible-collections-and-roles-from-the-galaxy-current/36678/1 "2022-06-01T07:30:34Z")

</div>

Hallo all,  
what is the best way to keep the ansible collections and roles current which you use ?

I think about parsing the output of `ansible-galaxy role list` or `ansible-galaxy collection list` but this is not very elegant.

I think I overlook a very simple solution, can somebody point me in the right directione, please ?

Many thanks

Norbert

---

<div class="post-metadata">

**Author:** ![Nico\_Kadel-Garcia](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/nico_kadel-garcia/32/9998_2.png) [@Nico\_Kadel-Garcia](https://forum.ansible.com/u/Nico_Kadel-Garcia)\
**Post date:** [June 1, 2022, 10:58am UTC](https://forum.ansible.com/t/how-do-you-keep-your-ansible-collections-and-roles-from-the-galaxy-current/36678/2 "2022-06-01T10:58:56Z")

</div>

Why would you want to? Any, and all, of the modules, mostly third  
party modules, can have ansible breaking updates without warning. An  
annual or semi-annual review, with smoke tests, might work well. What  
is wrong with "inelegant", especially when it avoids the half a  
Gigabyte of local disk space that the modern and misnamed "ansible"  
package provides? It's really "ansible\_collections", the name is very  
misleading, and the modern "ansible-core" package actually contains  
the working ansible code from [https://github.com/ansible/ansible/](https://github.com/ansible/ansible/) and  
installs the ansible modules.

If you'd like to double check the current bundled list for comparison,  
you can compare them to  
[https://github.com/ansible-community/ansible-build-data/](https://github.com/ansible-community/ansible-build-data/) config files,  
which are used to generate the mislabeled "ansible" tarball.

---

<div class="post-metadata">

**Author:** ![jcpetro](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Post date:** [June 1, 2022, 1:06pm UTC](https://forum.ansible.com/t/how-do-you-keep-your-ansible-collections-and-roles-from-the-galaxy-current/36678/3 "2022-06-01T13:06:58Z")

</div>

If I am understanding the requirement here. You want to be able to grab a specific version of a role or collection for some reason. If that is what you are asking for, then what about cloning the collection or role to a personal git repository.

–John
