Hi,
Refer to shell module doc <http://docs.ansible.com/shell_module.html>,
current it use /bin/sh to execute shell command, most time it works fine,
but for following example, the result from Ubuntu is different.
- shell: command -v nwef
Since in Ubuntu, /bin/sh -> dash, the command will return 127, not 1
$ cat test.sh
command -v nwef
echo $?
$ sh test.sh127
$ ./test.sh1
$ bash test.sh1
I don't know why dash return 127, it will cause result is not consistent in
different platform.
If shell module move to bash, the result will be same in different
Platform, and bash exist in most platform.
Thanks,
Linbo
--
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].
For more options, visit https://groups.google.com/groups/opt_out.