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

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fe7ff2f5-e603-c630-bd0b-a08c77c7b75a%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to