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

24 views
Skip to first unread message

Norbert Klamann

unread,
Jun 1, 2022, 3:30:34 AM6/1/22
to Ansible Project
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



Nico Kadel-Garcia

unread,
Jun 1, 2022, 6:59:23 AM6/1/22
to ansible...@googlegroups.com
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/ 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/ config files,
which are used to generate the mislabeled "ansible" tarball.

John Petro

unread,
Jun 1, 2022, 9:07:24 AM6/1/22
to ansible...@googlegroups.com
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

On Wed, Jun 1, 2022 at 3:30 AM Norbert Klamann <norbert...@klamann-software.de> wrote:
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/df51ba2e-2900-4de3-ba1f-a4e625296003n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages