Ansible "MODULE FAILURE" on AIX node

236 views
Skip to first unread message

Michelle Moreno Gutiérrez

unread,
Aug 31, 2016, 4:24:01 PM8/31/16
to Ansible Project
Hi

I have been traing to execute a "ls -l" command with ansible on an AIX group nodes but I get the next message error.

[root@machine1 ~]# ansible pdn-aix  -a "ls -l"
mdebddp03 | FAILED | rc=0 >>
MODULE FAILURE

epsmdebddp03 | FAILED | rc=0 >>
MODULE FAILURE

mdebddp02 | FAILED | rc=0 >>
MODULE FAILURE

Do you know what is the correct module  for this execution?

Thanks for your help,


Regards,

Kai Stian Olstad

unread,
Aug 31, 2016, 5:01:43 PM8/31/16
to ansible...@googlegroups.com
On 31. aug. 2016 22:03, Michelle Moreno Gutiérrez wrote:
> Hi
>
> I have been traing to execute a "ls -l" command with ansible on an AIX
> group nodes but I get the next message error.

Do the nodes have Python installed? If not you need to use the raw module.


> [root@machine1 ~]# ansible pdn-aix -a "ls -l"

The default module is command, you can change that with -m <module name>


> mdebddp03 | FAILED | rc=0 >>
> MODULE FAILURE
>
> epsmdebddp03 | FAILED | rc=0 >>
> MODULE FAILURE
>
> mdebddp02 | FAILED | rc=0 >>
> MODULE FAILURE
>
> Do you know what is the correct module for this execution?

command is the correct module, but require that Python is installed on
the nodes. To run with the raw module that do not require Python on the
node run this

ansible pdn-aix -m raw -a "ls -l"

--
Kai Stian Olstad

Michelle Moreno Gutiérrez

unread,
Sep 2, 2016, 4:39:53 PM9/2/16
to Ansible Project

The module raw really works,

ansible pdn-aix -m raw -a "ls -l"

mdebddp03 | SUCCESS | rc=0 >>
total 0
drwxr-xr-x  2 AdminSplunk users 80 Nov 20  2015 Documents
drwxr-xr-x  2 AdminSplunk users 48 Nov 20  2015 bin
drwxr-xr-x  2 AdminSplunk users 80 Nov 20  2015 public_html

epsmdebddp03 | SUCCESS | rc=0 >>
total 0
drwxr-xr-x 2 AdminSplunk users 48 2015-11-20 10:21 bin
drwx------ 2 AdminSplunk users 80 2015-11-20 10:21 Documents
drwxr-xr-x 2 AdminSplunk users 80 2015-11-20 10:21 public_html

mdebddp02 | SUCCESS | rc=0 >>
total 0
drwxr-xr-x 2 AdminSplunk users 48 2015-11-20 10:18 bin
drwx------ 2 AdminSplunk users 80 2015-11-20 10:18 Documents
drwxr-xr-x 2 AdminSplunk users 80 2015-11-20 10:18 public_html

thank you so much for your help!

Reply all
Reply to author
Forward
0 new messages