# Installing Ansible on AIX

**URL:** <https://forum.ansible.com/t/installing-ansible-on-aix/23900>\
**Category:** Ansible Project\
**Created:** [March 7, 2017, 7:49am UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900 "2017-03-07T07:49:12Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mona\_Gopal](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Post date:** [March 7, 2017, 7:49am UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/1 "2017-03-07T07:49:12Z")

</div>

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/](https://www.djouxtech.net/posts/ansible-on-aix/)

Kindly suggest a way forward ASAP

Regards,  
Mona G

---

<div class="post-metadata">

**Author:** ![Jon\_Stanley](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@Jon\_Stanley](https://forum.ansible.com/u/Jon_Stanley)\
**Post date:** [March 7, 2017, 11:46am UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/2 "2017-03-07T11:46:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [March 7, 2017, 12:16pm UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/3 "2017-03-07T12:16:39Z")

</div>

> 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/](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

---

<div class="post-metadata">

**Author:** ![Mona\_Gopal](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Post date:** [March 8, 2017, 7:13am UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/4 "2017-03-08T07:13:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mona\_Gopal](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Post date:** [March 27, 2017, 12:02pm UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/5 "2017-03-27T12:02:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mauricio\_Tavares](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Post date:** [March 27, 2017, 12:13pm UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/6 "2017-03-27T12:13:53Z")

</div>

> 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??

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

---

<div class="post-metadata">

**Author:** ![Stephen\_John\_Smoogen](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@Stephen\_John\_Smoogen](https://forum.ansible.com/u/Stephen_John_Smoogen)\
**Post date:** [March 27, 2017, 3:01pm UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/7 "2017-03-27T15:01:04Z")

</div>

> 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/](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](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](https://bootstrap.pypa.io/get-pip.py)  
&nbsp;&nbsp;&nbsp;&nbsp;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.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [March 27, 2017, 3:01pm UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/8 "2017-03-27T15:01:25Z")

</div>

> 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/](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?

---

<div class="post-metadata">

**Author:** ![Mona\_Gopal](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Post date:** [March 27, 2017, 3:04pm UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/9 "2017-03-27T15:04:06Z")

</div>

I am trying to install ansible on AIX 7.1 machine

---

<div class="post-metadata">

**Author:** ![Greg\_DeKoenigsberg1](https://avatars.discourse-cdn.com/v4/letter/g/838e76/32.png) [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Post date:** [March 27, 2017, 3:17pm UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/10 "2017-03-27T15:17:45Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![Stephen\_John\_Smoogen](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@Stephen\_John\_Smoogen](https://forum.ansible.com/u/Stephen_John_Smoogen)\
**Post date:** [March 27, 2017, 3:36pm UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/11 "2017-03-27T15:36:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Greg\_DeKoenigsberg1](https://avatars.discourse-cdn.com/v4/letter/g/838e76/32.png) [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Post date:** [March 27, 2017, 3:42pm UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/12 "2017-03-27T15:42:46Z")

</div>

> > > 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](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

---

<div class="post-metadata">

**Author:** ![Mona\_Gopal](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Post date:** [March 28, 2017, 5:15am UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/13 "2017-03-28T05:15:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mona\_Gopal](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Post date:** [March 28, 2017, 5:22am UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/14 "2017-03-28T05:22:06Z")

</div>

Hey Greg,

Thanks for the reply 🙂  
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

---

<div class="post-metadata">

**Author:** ![Mona\_Gopal](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mona\_Gopal](https://forum.ansible.com/u/Mona_Gopal)\
**Post date:** [March 28, 2017, 5:38am UTC](https://forum.ansible.com/t/installing-ansible-on-aix/23900/15 "2017-03-28T05:38:00Z")

</div>

Hey Smooge,

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

Regards,  
Mona
