Is there anyway of sending a limit to the AWX API through the ansible URI module? I can successfully launch jobs without a limit using the below example. But no matter where I try put the limit (within body or out of it) it won’t pass it through.
For info I don’t do much work with API’s so I’m not so good
- name: Launch USMS scan (Solaris)
uri:
url: http://XXXXXX:80/api/v2/job_templates/66/launch/
method: POST
user: svc1_awx
password: “XXXXXXXX”
status_code: 201
body:
limit: “{{ hostname }}”
body_format: json
when: os == “sol”