Thank you but I do use the shell module:
> - name: Test if openhr runs
> shell: ps -ef | grep -v grep | grep {{ ansible_user }} | grep
> dispatcher | grep {{ rep_user }}/{{ openhrname }}/bin
> register: procopenhr
>
> I did test, a pipe is allowed, with 2 pipes the error does occur
>
> Le mardi 24 mai 2016 16:06:14 UTC+2, Brian Coca a écrit :
>>
>> use shell module, command does not allow for pipes nor redirection as it
>> does not invoke a shell direclty, shell module DOES invoke a shell.
>>
>>
>> ----------
>> Brian Coca
>>
>
--
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/63968525-9f68-4083-8f81-a7fbdb820c12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.