title: How to set condition for single option of ansible module alone
body: <p>Is that possible to set conditions for a single option of the ansible module.</p>
  
  <pre><code>   Using set_fact we can set condition aand use that variable in the ansible module. Alternatively is there any other option to set the condition using if loop in jinja or something like that.
  </code></pre>
  
  <p>E.g:</p>
  
  <pre><code> - name: Simple PUT operation
     s3:
       bucket: mybucket
       object: /my/desired/key.txt
       src: /usr/local/myfile.txt
       mode: put
  </code></pre>
  
  <p>I  want to <strong>add s3_url option</strong> if it satifies the condition sample_var= myapp.If it doesnot satify it wont have to add s3_url</p>
  
  <pre><code>   - name: Simple PUT operation
       s3:
         bucket: mybucket
         object: /my/desired/key.txt
         src: /usr/local/myfile.txt
         mode: put 
         s3_url: "s3my url"------if it satisfies sample_var=myapp 
  </code></pre>
  
  <p>How can i use  jinja here when it satisfies my condition it needs to add this option to the ansible module?</p>
  
  <p>Thanks in advance..</p>