Please login or register. October 21, 2017, 03:57:40 PM

Author Topic: Ansible installation with python 2.7.12 fails  (Read 1664 times)

0 Members and 1 Guest are viewing this topic.

megabreit

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
Re: Ansible installation with python 2.7.12 fails
« Reply #10 on: March 16, 2017, 12:08:31 PM »
Don't waste too much energy on this dependency. The Ansible guys know about it and they hopefully fix it later.
Linux distributions ship even older versions of Jinja2...

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +0/-0
Re: Ansible installation with python 2.7.12 fails
« Reply #11 on: March 16, 2017, 10:09:34 PM »
I won't waste too much time. Mainly, I'll set it so ansible will not install if the jinja2 is too new.

However, to first test things - as I have no idea if it works...

I have a test setup - for you to install.

1) install aixtools.python.rte and aixtools.libffi.rte (as you did before)

2) from the directory http://download.aixtools.net/tools/python/ansible/ download all the .I files, or just the .tar file (http://download.aixtools.net/tools/python/ansible/aixtools.python.ansible.bnd.tar) and extract and install these files.

hints:
tar xf aixtools.python.ansible.bnd.tar
installp -d . all

/opt/bin/ansible --version
pip list

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +0/-0
Re: Ansible installation with python 2.7.12 fails
« Reply #12 on: March 17, 2017, 02:46:02 PM »
no time to try, or not working?

megabreit

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
Re: Ansible installation with python 2.7.12 fails
« Reply #13 on: March 17, 2017, 05:47:55 PM »
You're too fast for me...
I have installed all the filesets and did some quick testing:

/opt/bin/ansible --version
ansible 2.2.1.0
  config file =
  configured module search path = Default w/o overrides

pip list
ansible (2.2.1.0)
appdirs (1.4.3)
asn1crypto (0.21.1)
cffi (1.9.1)
cryptography (1.8.1)
enum34 (1.1.6)
idna (2.5)
ipaddress (1.0.18)
Jinja2 (2.8.1)
MarkupSafe (0.23)
packaging (16.8)
paramiko (2.1.2)
pip (8.1.1)
pyasn1 (0.2.3)
pycparser (2.17)
pycrypto (2.6.1)
pyparsing (2.2.0)
PyYAML (3.12)
setuptools (20.10.1)
six (1.10.0)
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.


ansible localhost -m ping
 [WARNING]: Host file not found: /etc/ansible/hosts

 [WARNING]: provided hosts list is empty, only localhost is available

localhost | SUCCESS => {
    "changed": false,
    "ping": "pong"
}

So from a very high altitude this looks fine. I don't have any AIX-ready playbooks around to do some real live testing.
I'll do this next week, or maybe even later. I didn't expect to get a working version of Ansible that fast and have plenty of other tasks.

Thanks so far! Great job! I'll check back if I have any results!

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1052
  • Karma: +0/-0
Re: Ansible installation with python 2.7.12 fails
« Reply #14 on: March 17, 2017, 08:49:00 PM »
Glad to know the initial test is 'safe'. I'll repackage with the dependencies included - and add a wiki page.