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
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/ef49e07b-0eb9-40e2-9128-b401186578ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.