Hi,

I have seen a number of sites that explain how to install a role from a 
tar.gz file using ansible-galaxy, and they all seem to say the same thing.
In my case I have downloaded the following role file from ansible galaxy :
*dsglaser-cis_security-1.2.0.tar.gz*

Then I tried to install 
ansible-galaxy collection install dsglaser-cis_security-1.2.0.tar.gz

which gives me the warning :

[WARNING]: - collection was NOT installed successfully: Failed to get data 
from the API server (https://galaxy.ansible.com/api/): Failed to connect to 
galaxy.ansible.com at port 443: [Errno 104] Connection reset by peer

This is correct, because this machine is not, and never will be connected 
to the internet.

Another attempt :

ansible-galaxy install dsglaser-cis_security-1.2.0.tar.gz


results in another warning:
[WARNING]: - dsglaser-cis_security-1.2.0.tar.gz was NOT installed 
successfully: the specified roles path exists and is not a directory.

Also tried using the -p option to indicate where I want the role to be 
installed, with and without the directory present, but every attempt 
resulted in the last warning.

I'm **not** doing this as root...
Ansible version is 2.8.13

Just discovered that the command

ansible-galaxy install dsglaser-cis_security-1.2.0.tar.gz -p ./bla

does work, but only as root. And that's not what I want...

What am I doing wrong ?
 

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/609e7487-3a46-41dc-9cb2-e6cb2c5d1e57o%40googlegroups.com.

Reply via email to