title: curl POST -o downloads a zip file but ansible does not?
body: <p>I'm executing below commands - </p>
  
  <pre><code>JOINER_CONFIG=`curl -s -S -X GET -H "Accept: application/xml" http://dbsrd3485:8001/admin/v1/server-config`;curl -s -S --digest --user admin:NPgE3sFE -X POST -o cluster-config.zip -d "group=Default" --data-urlencode "server-config=${JOINER_CONFIG}" -H "Content-type: application/x-www-form-urlencoded" http://dbsrd3510:8001/admin/v1/cluster-config
  </code></pre>
  
  <p>The output is <code>cluster-config.zip</code>. How can I use ansible to perform the same job. I tried below ansible command but it doesn't return the zip file - </p>
  
  <pre><code>ansible dbsrd3485 -m shell -a 'JOINER_CONFIG=`curl -s -S -X GET -H "Accept: application/xml" http://dbsrd3485:8001/admin/v1/server-config`;curl -s -S --digest --user admin:NPgE3sFE -X POST -o cluster-config.zip -d "group=Default" --data-urlencode "server-config=${JOINER_CONFIG}" -H "Content-type: application/x-www-form-urlencoded" http://dbsrd3510:8001/admin/v1/cluster-config'
  </code></pre>
  
  <p>The output is - </p>
  
  <pre><code>dbsrd3485 | SUCCESS | rc=0 &gt;&gt;
  </code></pre>
  
  <p>I would appreciate if you someone can provide a yml script to execute using ansible-playbook.</p>