ansible shell escape single and double quotes
<p>I'm trying to execute this command:</p>

<pre><code>ps -eo pid,args --cols=10000 | awk '/\/opt\/logstash\/logstash-1.5.3\// &amp;&amp; $1 != PROCINFO["pid"] { print $1 }'
</code></pre>

<p>whith ansible -m shell module (<em>not</em> working example):</p>

<pre><code>ansible -m shell -a '"'ps -eo pid,args --cols=10000 | awk '/\/opt\/logstash\/logstash-1.5.3\// &amp;&amp; $1 != PROCINFO[\'pid\'] { print $1 }' '"' all
</code></pre>

<p>One of the ways would be to put that into a file, but still it would be nice to run as a command - any ideas?</p>