Hi All,

I need to execute complex shell commands on remote or local hosts. What is 
the best way to this?

I tried multiple ways. Either it is not passing Ansible syntax, or shell 
script syntax


Suppose I want to execute this command

echo "ps -ef|grep data"|sed 's~[^[:alnum:]/]\+~~g'|sed "s/$/$(date 

It gives following output on shell : 

But somehow I am not able to execute. Urgent help please ?


You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to