# How to install ansible.posix without Internet but with some RHEL repositories locally available

**URL:** <https://forum.ansible.com/t/how-to-install-ansible-posix-without-internet-but-with-some-rhel-repositories-locally-available/39171>\
**Category:** Get Help\
**Tags:** ansible-galaxy, rhel, rhel9\
**Created:** [December 16, 2024, 7:23am UTC](https://forum.ansible.com/t/how-to-install-ansible-posix-without-internet-but-with-some-rhel-repositories-locally-available/39171 "2024-12-16T07:23:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![halloleo](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@halloleo](https://forum.ansible.com/u/halloleo)\
**Post date:** [December 16, 2024, 7:23am UTC](https://forum.ansible.com/t/how-to-install-ansible-posix-without-internet-but-with-some-rhel-repositories-locally-available/39171/1 "2024-12-16T07:23:02Z")

</div>

I want to use ansible.posix in my Ansible scripts. The simple

```auto
ansible-galaxy collection install ansible.posix

```

does not work, because the network (with control node and managed nodes) is not connected to the Internet.

How can I install a collection via files transferred from another machine?

---

<div class="post-metadata">

**Author:** ![anon81884396](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@anon81884396](https://forum.ansible.com/u/anon81884396)\
**Post date:** [December 16, 2024, 1:50pm UTC](https://forum.ansible.com/t/how-to-install-ansible-posix-without-internet-but-with-some-rhel-repositories-locally-available/39171/2 "2024-12-16T13:50:42Z")

</div>

I don’t really understand what you’re trying to do. Isn’t ansible.posix included within Ansible out-of-the-box?

---

<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 16, 2024, 4:59pm UTC](https://forum.ansible.com/t/how-to-install-ansible-posix-without-internet-but-with-some-rhel-repositories-locally-available/39171/3 "2024-12-16T16:59:47Z")

</div>

[Installing collections — Ansible Community Documentation](https://docs.ansible.com/ansible/latest/collections_guide/collections_installing.html#downloading-a-collection-for-offline-use) describes how to download a collection tarball from Ansible Galaxy, and the same page has multiple examples of how to install a collection from a tarball.

@anon81884396 ansible.posix is part of the Ansible community distribution, [ansible · PyPI](https://pypi.org/project/ansible/). But there are multiple things called “Ansible”, so they might only use ansible-core directly, which does not come with ansible.posix.

---

<div class="post-metadata">

**Author:** ![bcoca](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bcoca/32/9269_2.png) [@bcoca](https://forum.ansible.com/u/bcoca)\
**Post date:** [December 16, 2024, 5:17pm UTC](https://forum.ansible.com/t/how-to-install-ansible-posix-without-internet-but-with-some-rhel-repositories-locally-available/39171/4 "2024-12-16T17:17:51Z")

</div>

You can install a collection from a file, see 3rd example [Installing collections — Ansible Community Documentation](https://docs.ansible.com/ansible/latest/collections_guide/collections_installing.html#installing-collections-with-ansible-galaxy)

---

<div class="post-metadata">

**Author:** ![halloleo](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@halloleo](https://forum.ansible.com/u/halloleo)\
**Post date:** [December 16, 2024, 10:22pm UTC](https://forum.ansible.com/t/how-to-install-ansible-posix-without-internet-but-with-some-rhel-repositories-locally-available/39171/5 "2024-12-16T22:22:58Z")

</div>

> [@anon81884396](#):
>
> Isn’t ansible.posix included within Ansible out-of-the-box?

To elaborate on @felixfontein’s info: I am using RHEL9 repos (only thing we have offline access to) and I was able to install ansible-core from there but no posix stuff.

---

<div class="post-metadata">

**Author:** ![halloleo](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@halloleo](https://forum.ansible.com/u/halloleo)\
**Post date:** [December 16, 2024, 10:24pm UTC](https://forum.ansible.com/t/how-to-install-ansible-posix-without-internet-but-with-some-rhel-repositories-locally-available/39171/6 "2024-12-16T22:24:49Z")

</div>

> [@felixfontein](#):
>
> [Installing collections — Ansible Community Documentation](https://docs.ansible.com/ansible/latest/collections_guide/collections_installing.html#downloading-a-collection-for-offline-use) describes how to download a collection tarball

Thanks for the link. Explains it well.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [January 15, 2025, 10:25pm UTC](https://forum.ansible.com/t/how-to-install-ansible-posix-without-internet-but-with-some-rhel-repositories-locally-available/39171/7 "2025-01-15T22:25:16Z")

</div>

Closed on January 15, 2025, 10:25pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
