title: ansible uri module with form
body: <p>Is it possible to run this command with uri module in ansible ?</p>
  
  <pre><code>- shell: unset http_proxy &amp;&amp; curl -X POST -H "Cache-Control:no-cache" -F "access_key={{ api_user }}" -F "secret_key={{ api_pass }}" "http://mydomain.bla/api/v1/login_check"
  </code></pre>
  
  <p>I tried like this:</p>
  
  <pre><code>- uri:
      url: http://mydomain.bla/api/v1/login_check
      method: POST
      user: "{{ api_user }}"
      password: "{{ api_pass }}"
    environment:
      http_proxy: ''
  </code></pre>
  
  <p>And like this:</p>
  
  <pre><code>- uri:
      url: http://mydomain.bla/api/v1/login_check
      method: POST
      body: "access_key={{ api_user }}&amp;secret_key={{ api_pass }}"
    environment:
      http_proxy: ''
  </code></pre>
  
  <p>And still does not work.
  I'm trying to get a token and store it in an ansible variable.</p>
  
  <p>"use_proxy: false" or no does not work - that's why I'm using this ugly environment workaround</p>