Hello everyone,
I have access to run on a cluster without root access. This cluster doesn’t have access to the public network (no git, wget, curl…)
Can i install ansible on it?
Thank you!
Hello everyone,
I have access to run on a cluster without root access. This cluster doesn’t have access to the public network (no git, wget, curl…)
Can i install ansible on it?
Thank you!
Do you have access to at least copy artifacts to this machine or is it completely off the grid?
You can install Ansible if you can get the Artifacts to that machine.
Download the artifacts from PyPI: https://pypi.org/project/ansible/#files
Get the artifact to the target machine.
You can then do pip install --user <path_to_tar.gz>
Hello,
I was able to copy the artifacts but i got an error during the installation. Any idea what it meant please?
Thank you,
$ pip3 install --user ansible-3.3.0.tar.gz
Processing ./ansible-3.3.0.tar.gz
Collecting ansible-base<2.11,>=2.10.8 (from ansible==3.3.0)
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x147120631c88>: Failed to establish a new connection: [Errno -2] Name or service not known’,)': /simple/ansible-base/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x147120631f28>: Failed to establish a new connection: [Errno -2] Name or service not known’,)': /simple/ansible-base/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x147120631ba8>: Failed to establish a new connection: [Errno -2] Name or service not known’,)': /simple/ansible-base/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x147120631518>: Failed to establish a new connection: [Errno -2] Name or service not known’,)': /simple/ansible-base/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x1471205caf28>: Failed to establish a new connection: [Errno -2] Name or service not known’,)': /simple/ansible-base/
Could not find a version that satisfies the requirement ansible-base<2.11,>=2.10.8 (from ansible==3.3.0) (from versions: )
No matching distribution found for ansible-base<2.11,>=2.10.8 (from ansible==3.3.0)
You need to fetch all the dependencies
There are some non-oficial ansible portable distributions. I used these in very specific scenarios and I found them useful.
This is the one I used a few times: https://github.com/ownport/portable-ansible
Can i fetch all the dependencies on a machine with internet access , and copy them to the machine for installation?
If so, how please?
Thank you,
See https://pip.pypa.io/en/stable/cli/pip_download/
Use the --dest to place all the downloaded files into a specific directory.
I followed the instructions and it only installed ansible-base-2.1-.9
How can i get ansible-playbook please?
Thank you,
$ pip3 install ansible-3.3.0.tar.gz --no-index --find-links=dependencies --user
Processing ./ansible-3.3.0.tar.gz
Collecting ansible-base<2.11,>=2.10.8 (from ansible==3.3.0)
Requirement already satisfied: jinja2 in /usr/lib/python3.6/site-packages (from ansible-base<2.11,>=2.10.8->ansible==3.3.0)
Requirement already satisfied: PyYAML in /usr/lib64/python3.6/site-packages (from ansible-base<2.11,>=2.10.8->ansible==3.3.0)
Requirement already satisfied: cryptography in /usr/lib64/python3.6/site-packages (from ansible-base<2.11,>=2.10.8->ansible==3.3.0)
Requirement already satisfied: packaging in /usr/lib/python3.6/site-packages (from ansible-base<2.11,>=2.10.8->ansible==3.3.0)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/lib64/python3.6/site-packages (from jinja2->ansible-base<2.11,>=2.10.8->ansible==3.3.0)
Requirement already satisfied: idna>=2.1 in /usr/lib/python3.6/site-packages (from cryptography->ansible-base<2.11,>=2.10.8->ansible==3.3.0)
Requirement already satisfied: asn1crypto>=0.21.0 in /usr/lib/python3.6/site-packages (from cryptography->ansible-base<2.11,>=2.10.8->ansible==3.3.0)
Requirement already satisfied: six>=1.4.1 in /usr/lib/python3.6/site-packages (from cryptography->ansible-base<2.11,>=2.10.8->ansible==3.3.0)
Requirement already satisfied: cffi!=1.11.3,>=1.7 in /usr/lib64/python3.6/site-packages (from cryptography->ansible-base<2.11,>=2.10.8->ansible==3.3.0)
Requirement already satisfied: pyparsing in /usr/lib/python3.6/site-packages (from packaging->ansible-base<2.11,>=2.10.8->ansible==3.3.0)
Requirement already satisfied: pycparser in /usr/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.7->cryptography->ansible-base<2.11,>=2.10.8->ansible==3.3.0)
Installing collected packages: ansible-base, ansible
Running setup.py install for ansible-base … done
Running setup.py install for ansible … done
Successfully installed ansible-3.3.0 ansible-base-2.10.9
That comes with ansible-playbook does it not?
It’s not in the environment and not in /usr/bin/
If it’s installed, where would it be?
As soon as I used pip I just typed ansible-playbook and it’s there