Using the Example Curl -X you can use the Ansible URI Module curl -X POST 
http://developer:developer@localhost:8080/job/test/buildWithParameter 
--data-urlencode json='{"parameter": [{"name":"paramA", "value":"123"}]}'---
  - name: Jenkins Remote Build 
    hosts: localhost
    connection: local
    tasks:
    - name: Adding Virtual Machine to Blackout
      uri:
        url: 
http://developer:developer@localhost:8080/job/test/buildWithParameter
        method: POST
        body_format: JSON
        body:
        "{\"parameter\":             [{\"name\":\"Test\"},             
{\"vaule\":\"123\"}]}        status_code: 200


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/493bd37e-c52c-49e2-8280-9353b423023d%40googlegroups.com.

Reply via email to