python - ansible 2.3.1.0 install only from files -


i need install ansible-2.3.1.0 files copy firewalled host. internally-supported pip install grabs ansible 1.x, can't use that.

the default python on online host 2.7.12, , offline host 2.7.6.

here's did

# on separate host can access internet ... ssh online_host mkdir ~/ansible cd ~/ansible  # download ansible , first-level requirements dependency tarballs pip install --download . ansible tar xvf ansible-2.3.1.0.tar.gz pip install --download . -r ansible-2.3.1.0/requirements.txt  # gave me these tarballs ansible-2.3.1.0.tar.gz jinja2-2.9.6.tar.gz paramiko-2.2.1.tar.gz pycrypto-2.6.1.tar.gz pyyaml-3.12.tar.gz  # install on offline host ssh offline_host # tarballs above copied here cd ~/ansible # unpack , offline install sudo pip install ansible-2.3.1.0.tar.gz --no-index --find-links file://`pwd` 

but when try run ansible, give me this:

ansible traceback (most recent call last):   file "/usr/bin/ansible", line 25, in <module>     ansible.runner import runner importerror: no module named runner 

has installed ansible 2.3 this? missing?

i tried looking @ deeper dependencies coulnd't figure out might (i see ansible api changes 1.x 2.x, can't figure out or fix in case.

edit:

after copying /usr/local/bin/ansible* on /usr/bin rid myself of old 1.x leftover ansible command wrappers, commands start when run playbook (omitting playbook , ansible-playbook command-line since don't think matter):

task [gathering facts] ******************************************************************************************************* fatal: [slcmskafka-1169389.stratus.slc.ebay.com]:  failed! => {"changed": false, "failed": true, "msg":  "unsupported parameters (setup) module: gather_subset,gather_timeout. supported parameters include: fact_path,filter"} 

fixed.

i more thoroughly removed older ansible this:

sudo pip uninstall ansible # didn't need autoremove sudo apt-get remove ansible 

then /usr/local/bin/ansible* commands worked (and there no longer older /usr/bin/ansible* commands replace) , playbooks work too.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -