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