Installing Ansible on AIX

Hello,

I need ansible to be installed on AIX 6.1 and 7.1.
Kindly provide the pre-requisites and steps for installation of ansible

Also, would it require any changes to be done in the playbook?

Have been referring to the below link, but hasn’t been of much help:
https://www.djouxtech.net/posts/ansible-on-aix/

Kindly suggest a way forward ASAP

Regards,
Mona G

Not an AIX expert (or even novice), but in what way has this not been
of help? It explains what the pre-requisites are (a working Python 2
interpreter - and how to get there on AIX) and SSH. What part of that
are you having problems with? What error messages are produced?

A more specific inquiry is more likely to yield solutions.

Hello,

I need ansible to be installed on AIX 6.1 and 7.1.
Kindly provide the pre-requisites and steps for installation of ansible

Also, would it require any changes to be done in the playbook?

Have been referring to the below link, but hasn't been of much help:
https://www.djouxtech.net/posts/ansible-on-aix/

Kindly suggest a way forward ASAP

From the URL I assume you want to manage AIX systems using Ansible.

Also assuming your management station is working correctly.

What exactly did you try? Do you have an example playbook that doesn't work?
Are there any errors that you encounter?
Any information at all?

Dick

Hi Dick,

Firstly, thanks for the reply.
And sorry the url doesn’t refer to ansible installation on AIX box.
and my requirement is to setup ansible on AIX 7.1 machine.

Thanks in advance,
Mona

Hey Jon,

The link doesn’t give an explanation on setting up Ansible. It only guides to setup python.
The python setup has been done. However, unable to install pip which would help me in installing Ansible.
Any easier approach available??

Regards,
Mona G

Hey Jon,

The link doesn't give an explanation on setting up Ansible. It only guides
to setup python.
The python setup has been done. However, unable to install pip which would
help me in installing Ansible.
Any easier approach available??

      When you say unable to install pip, could you elaborate? Perhaps
pasting the command you tried to run and the error messages.

Hello,

I need ansible to be installed on AIX 6.1 and 7.1.
Kindly provide the pre-requisites and steps for installation of ansible

Also, would it require any changes to be done in the playbook?

Have been referring to the below link, but hasn't been of much help:
https://www.djouxtech.net/posts/ansible-on-aix/

Kindly suggest a way forward ASAP

So the instructions look to be lacking in some key steps of getting
ansible installed. You will probably need to get the python-setuptools
package and then look at the steps at
https://github.com/nodejs/build/issues/533

I would do the following:
1. Get a test instance to make sure this isn't going to eat your systems brains
2. download https://bootstrap.pypa.io/get-pip.py
    Note: I don't like the fact that the blob has no gpg signature or
sha256sum etc to say "Hey we really put this up here for you". I would
prefer to give you anything else.. but I don't have any AIX systems to
build rpms on so ¯\_(ツ)_/¯
3. examine that blob as best you can...
4. python get-pip.py
5. See if that works and didn't eat your test system or join a zombie
horde of aix systems.
6. install ansible on the test box and work from there.

Hey Jon,

The link doesn't give an explanation on setting up Ansible. It only guides
to setup python.
The python setup has been done. However, unable to install pip which would
help me in installing Ansible.

In case it is not obvious.
"Installing ansible" refers to installing the ansible software onto a
management station.
This require python, and pip can be used for that.

From that management station you can then use the ansible software to

manage other systems - such as AIX systems.

https://www.djouxtech.net/posts/ansible-on-aix/ describes how to
manage AIX systems.

From comments (unable to install pip) it seems that you have trouble

getting ansible on your management station (which might or might not
be AIX).

Still confused: what are you trying to do?

I am trying to install ansible on AIX 7.1 machine

I am trying to install ansible on AIX 7.1 machine

You need to be more specific.

Ansible is a program that manages other systems via SSH.

Are you (1) using an AIX system to run Ansible *from*, or (2) do you
want to use Ansible to manage AIX hosts?

If the answer is (2), then you don't need to install Ansible itself on
the AIX hosts. You need to install Ansible on the system that will
connect to those hosts, and the target hosts only need Python and SSH.

And if the answer is (1), you're trying to install Ansible on an AIX
system itself... why?

--g

Parsing together the data from the previous messages, the work shop
Mona is managing is an AIX only shop with 7.1 and 6.x systems. The
management host will then be an AIX system versus the usual Linux
system.

I am trying to install ansible on AIX 7.1 machine

You need to be more specific.

Ansible is a program that manages other systems via SSH.

Are you (1) using an AIX system to run Ansible *from*, or (2) do you
want to use Ansible to manage AIX hosts?

If the answer is (2), then you don't need to install Ansible itself on
the AIX hosts. You need to install Ansible on the system that will
connect to those hosts, and the target hosts only need Python and SSH.

And if the answer is (1), you're trying to install Ansible on an AIX
system itself... why?

Parsing together the data from the previous messages, the work shop
Mona is managing is an AIX only shop with 7.1 and 6.x systems. The
management host will then be an AIX system versus the usual Linux
system.

OK, then getting python and pip installed is the key.

Maybe using AIX Tools:

http://www.aixtools.net/index.php/python

But, strictly speaking, this is not an Ansible issue, it's a Python
issue. Get Python and Pip installed, and then once you can get "pip
install" working, then you should pip install ansible and its various
dependencies.

--g

Hey Dick!!

To clarify the confusions.
I am trying to install Ansible software on an AIX machine.
In the process of setting up ansible, i am facing difficulties to install pip on this AIX box.

NOTE: The remote machines which i am going to connect to are also AIX machines.

Regards,
Mona

Hey Greg,

Thanks for the reply :slight_smile:
I am trying to do both (1) and (2) as mentioned by you.
Earlier we were trying to connect to the remote(AIX) machines from a linux box. We have been successful in doing so.
However, the connectivity being poor, the plan changed to setting up ansible on the AIX machine itself. There by making it easier to deploy.
And in the process we are facing difficulty to get pip(to install ansible) on that AIX machine. We are new to an AIX environment and hence facing these basic difficulties.

Regards,
Mona G

Hey Smooge,

Thanks for the reply!!
Will surely try out the link sent :slight_smile:
Even we have just one box to test this on hence the IT does the trial and errors. :smiley:
Will get back to you on this.

Regards,
Mona