# \[WARNING\]: - linux-system-roles.network was NOT installed successfully: Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': \<urlopen error \[Errno 101\] Network is unreachable\>

**URL:** <https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [February 1, 2021, 4:19pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552 "2021-02-01T16:19:37Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ursa\_Brown](https://avatars.discourse-cdn.com/v4/letter/u/eb9ed0/32.png) [@ursa\_Brown](https://forum.ansible.com/u/ursa_Brown)\
**Post date:** [February 1, 2021, 4:19pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/1 "2021-02-01T16:19:37Z")

</div>

How can I make ansible-galaxy work if it is not connected to internet?  
Thank you

ansible-galaxy role install linux-system-roles.network

[WARNING]: - linux-system-roles. network was NOT installed successfully: Unknown error when attempting to call  
Galaxy at ‘[https://galaxy.ansible.com/api/](https://galaxy.ansible.com/api/)’: \<urlopen error [Errno 101] Network is unreachable\>

---

<div class="post-metadata">

**Author:** ![Jorge\_Rua1](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Jorge\_Rua1](https://forum.ansible.com/u/Jorge_Rua1)\
**Post date:** [February 1, 2021, 4:33pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/2 "2021-02-01T16:33:40Z")

</div>

If you don’t have access to the internet, then you’ll have to mirror the required content into your network somehow.

FYI: [https://galaxy.ansible.com/docs/using/installing.html](https://galaxy.ansible.com/docs/using/installing.html)

You can also consider running an Pulp instance to server ansible content too: [https://github.com/pulp/pulp\_ansible](https://github.com/pulp/pulp_ansible)

HTH,

---

<div class="post-metadata">

**Author:** ![ursa\_Brown](https://avatars.discourse-cdn.com/v4/letter/u/eb9ed0/32.png) [@ursa\_Brown](https://forum.ansible.com/u/ursa_Brown)\
**Post date:** [February 1, 2021, 8:14pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/3 "2021-02-01T20:14:09Z")

</div>

there should be a offline flag…

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [February 1, 2021, 10:34pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/4 "2021-02-01T22:34:16Z")

</div>

How do you expect to download a role from the internet if you don’t have access to the internet in the first place. An offline flag would only work if you’ve already downloaded the roles and placed it somewhere, if that’s the case then just copy it into the roles directory like normal roles.

You can also do as the previous commenter said and mirror the content to a local repository and target that server when installing roles.

---

<div class="post-metadata">

**Author:** ![ursa\_Brown](https://avatars.discourse-cdn.com/v4/letter/u/eb9ed0/32.png) [@ursa\_Brown](https://forum.ansible.com/u/ursa_Brown)\
**Post date:** [February 2, 2021, 2:33am UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/5 "2021-02-02T02:33:23Z")

</div>

So the yum install linux-system-roles wont fix this?

---

<div class="post-metadata">

**Author:** ![ursa\_Brown](https://avatars.discourse-cdn.com/v4/letter/u/eb9ed0/32.png) [@ursa\_Brown](https://forum.ansible.com/u/ursa_Brown)\
**Post date:** [February 2, 2021, 2:35am UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/6 "2021-02-02T02:35:13Z")

</div>

Do you mind showing me the step on how to do it offline?  
Thank you

---

<div class="post-metadata">

**Author:** ![ursa\_Brown](https://avatars.discourse-cdn.com/v4/letter/u/eb9ed0/32.png) [@ursa\_Brown](https://forum.ansible.com/u/ursa_Brown)\
**Post date:** [February 2, 2021, 2:11pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/7 "2021-02-02T14:11:39Z")

</div>

when you say mirror? like this?

1. cp -r /usr/share/ansible/roles/rhel-system-roles.network /home/ansible/roles/

---

<div class="post-metadata">

**Author:** ![Jorge\_Rua1](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Jorge\_Rua1](https://forum.ansible.com/u/Jorge_Rua1)\
**Post date:** [February 2, 2021, 2:42pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/8 "2021-02-02T14:42:36Z")

</div>

By mirror I mean cloning, downloading content from ansible-galaxy and placing it into a server in your network.  
This server can then expose the very same content via http/s, git protocols.

So you’ll need to come up with an strategy to fetch content upstream to your network.  
After you’ve built your catalog of ansible items internally, you could instruct ansible-galaxy to fetch it from your internal network instead.

This concept of air-gapped/disconnected networks applies for multiple approaches, like distributing RPMs, container images and so on.

---

<div class="post-metadata">

**Author:** ![Richard\_Megginson](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/richard_megginson/32/4540_2.png) [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Post date:** [February 2, 2021, 3:00pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/9 "2021-02-02T15:00:32Z")

</div>

> So the yum install linux-system-roles wont fix this?

Yes, you can use `yum install linux-system-roles` - what platform are you using for your Ansible controller node? Fedora 32/33?

---

<div class="post-metadata">

**Author:** ![ursa\_Brown](https://avatars.discourse-cdn.com/v4/letter/u/eb9ed0/32.png) [@ursa\_Brown](https://forum.ansible.com/u/ursa_Brown)\
**Post date:** [February 2, 2021, 3:27pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/10 "2021-02-02T15:27:29Z")

</div>

For start I only have a RHEL7 iso.

---

<div class="post-metadata">

**Author:** ![Richard\_Megginson](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/richard_megginson/32/4540_2.png) [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Post date:** [February 2, 2021, 3:58pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/11 "2021-02-02T15:58:40Z")

</div>

> For start I only have a RHEL7 iso.

In RHEL the package is called `rhel-system-roles`.

---

<div class="post-metadata">

**Author:** ![ursa\_Brown](https://avatars.discourse-cdn.com/v4/letter/u/eb9ed0/32.png) [@ursa\_Brown](https://forum.ansible.com/u/ursa_Brown)\
**Post date:** [February 2, 2021, 5:01pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/12 "2021-02-02T17:01:54Z")

</div>

in rhel-system-roles package the geerlinguy or haproxy role is not there. How will I use a geerlinguy haproxy role?  
Thanks

---

<div class="post-metadata">

**Author:** ![Richard\_Megginson](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/richard_megginson/32/4540_2.png) [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Post date:** [February 2, 2021, 5:15pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/13 "2021-02-02T17:15:08Z")

</div>

> in rhel-system-roles package the geerlinguy or haproxy role is not there. How will I use a geerlinguy haproxy role?

I don't know, but I'm curious as to why you thought the "geerlinguy haproxy" role was provided by the linux-system-roles or rhel-system-roles RPM package?

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [February 2, 2021, 5:21pm UTC](https://forum.ansible.com/t/warning-linux-system-roles-network-was-not-installed-successfully-unknown-error-when-attempting-to-call-galaxy-at-https-galaxy-ansible-com-api-urlopen-error-errno-101-network-is-unreachable/34552/14 "2021-02-02T17:21:32Z")

</div>

Hi

You seem to be circling around the fact that you don’t have internet connectivity in your environment.  
And the recommendations that were given by the previous posters didn’t get any traction.  
There are many ways to get content onto an air gapped system.  
But this is entirely dependent on your environment.  
If all else fails, just download the content on an internet connected host and copy it to your ansible host. Perhaps by USB stick, whatever works for you.  
If you don’t know how to do that, then ask someone who DOES know your environment (your sysadmin or tech support or whatever).
