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,
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"
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!