On the github page I see this statement “No additional software required on client boxes” but I think I need at least python-symplejson to run right? And i’ve tried it on AIX (After installing python 2.6) and it complained about _md5 beeing deprecated.
Anyhow, what I really want to ask; what are the minimum requirements for the clients (besides a SSH connectivity for ansible to be able to run?
The JSON library is part of Python if you have python x>=2.5,
otherwise you do need to install python-simplejson
Hence the part that says " On the managed nodes, you only need Python
2.4 or later, but if you are are running less than Python 2.6 on them,
you will also need: python-simplejson"
Can you paste the message you are getting about md5? I'm betting we
can make that go away.
I’m just looking for clarity about which Python version includes the JSON library. In your email you say “Python >= 2.5” includes the JSON library but later you also say “less than 2.6” needs python-simplejson installed. Can you clear that up for me please?
Excellent, This is the message I get when connecting to AIX:
mmaas@pmgtansible:~/playbooks$ ansible aix -m ping
taixkitty | FAILED => failed to parse: /home/mmaas/.ansible/tmp/ansible-1351678614.33-20335724501960/ping:89: DeprecationWarning: the md5 module is deprecated; use hashlib instead
from md5 import md5 as _md5
Traceback (most recent call last):
File “/home/mmaas/.ansible/tmp/ansible-1351678614.33-20335724501960/ping”, line 89, in
from md5 import md5 as _md5
File “/opt/pware64/lib/python2.6/md5.py”, line 10, in
from hashlib import md5
File “/opt/pware64/lib/python2.6/hashlib.py”, line 136, in
md5 = __get_builtin_constructor(‘md5’)
File “/opt/pware64/lib/python2.6/hashlib.py”, line 63, in __get_builtin_constructor
Yeah, fair warning, some of the modules contain Linuxisms. There are
a fair amount of BSD users using a subset of the modules. We are in
the process of making many of them (like user) do OS detection and
choose appropriate sub-implementations of how to do certain things.
As such, I think things like command/etc may be good for you, but
there are going to be places where module upgrades are probably going
to be needed. I'm very much up for supporting that effort if you are
interested, and I think the OS detection in modules (see https://github.com/ansible/ansible/pull/1483 for an example) are going
to make that easier.
If you are interested in helping this along, that would be great. If
not, it's important to share where we are at
Ugh, don’t I know it… It’s THE most arcane, archaic, old, stupid, complex leftover from the cold war I have ever encountered. I wish I could just replace it completely.
Yeah, fair warning, some of the modules contain Linuxisms. There are
a fair amount of BSD users using a subset of the modules. We are in
the process of making many of them (like user) do OS detection and
choose appropriate sub-implementations of how to do certain things.
Sounds like I should either stick with Linux for a while. I’m not good at python. Perhaps someday. The only thing I could do is test, and give you commandline examples (Both for hacmp clusters on AIX as on standalone aix). (For instance for creating mount points and/or users/groups)
As such, I think things like command/etc may be good for you, but
there are going to be places where module upgrades are probably going
to be needed. I’m very much up for supporting that effort if you are
interested, and I think the OS detection in modules (see https://github.com/ansible/ansible/pull/1483 for an example) are going
to make that easier.
Sounds like I should either stick with Linux for a while. I'm not good at
python. Perhaps someday. The only thing I could do is test, and give you
commandline examples (Both for hacmp clusters on AIX as on standalone aix).
(For instance for creating mount points and/or users/groups)
Understood
It's probably hard for me to test new AIX development back and forth
that way, but I suspect there may be some other people on the list
with access to AIX hardware who would be willing to help and work with
you, and maybe you can help test too.
I'd also suggest stopping by ansible in the middle of the day EST or
so, and seeing if anyone there can help, if you don't get any hits
here.