# Install collection offline for ansible 2.9 on RHEL-7

**URL:** <https://forum.ansible.com/t/install-collection-offline-for-ansible-2-9-on-rhel-7/3048>\
**Category:** Get Help\
**Tags:** rhel, collections\
**Created:** [December 22, 2023, 7:22pm UTC](https://forum.ansible.com/t/install-collection-offline-for-ansible-2-9-on-rhel-7/3048 "2023-12-22T19:22:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kulbir](https://avatars.discourse-cdn.com/v4/letter/k/ed655f/32.png) [@kulbir](https://forum.ansible.com/u/kulbir)\
**Post date:** [December 22, 2023, 7:22pm UTC](https://forum.ansible.com/t/install-collection-offline-for-ansible-2-9-on-rhel-7/3048/1 "2023-12-22T19:22:43Z")

</div>

My ansible control node is disconnected from Internet. I need to install " Containers.Podman" collection in a offline mode on my ansible 2.9 version on RHEL7 machine. Looking for help on recipe.

Regards

---

<div class="post-metadata">

**Author:** ![chris](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chris/32/293_2.png) [@chris](https://forum.ansible.com/u/chris)\
**Post date:** [December 22, 2023, 9:03pm UTC](https://forum.ansible.com/t/install-collection-offline-for-ansible-2-9-on-rhel-7/3048/2 "2023-12-22T21:03:52Z")

</div>

You could download a old archive from the [GitHub repo](https://github.com/containers/ansible-podman-collections/tags) and upload and extract it on the server?

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [December 22, 2023, 9:27pm UTC](https://forum.ansible.com/t/install-collection-offline-for-ansible-2-9-on-rhel-7/3048/3 "2023-12-22T21:27:02Z")

</div>

You can also use `ansible-galaxy collection download` to download a collection tarball (or a specific version of it). Simply copy it over to that server and run `ansible-galaxy collection install` on it.

You need to make sure that the version you download works with 2.9 though (note that Ansible 2.9 is End of Life) - according to [ansible-podman-collections/meta/runtime.yml at master · containers/ansible-podman-collections · GitHub](https://github.com/containers/ansible-podman-collections/blob/master/meta/runtime.yml#L2) the latest version still supports 2.9 though.

Another potential pitfall is whether the collection has dependencies. I think `ansible-galaxy collection download` also downloads them by default (unless you specify `--no-deps`), but in this case it’s not necessary since the collection has no dependencies ([ansible-podman-collections/galaxy.yml at master · containers/ansible-podman-collections · GitHub](https://github.com/containers/ansible-podman-collections/blob/master/galaxy.yml#L16)).
