Ansible Tower - API - providing template credentials

Latest response

Hi, I am using Tower 3.8.5 and have a template which I want to run with credentials provided at run time. Sometimes I run against Linux and sometimes windows using dynamic inventory.

I have set prompt on launch and am passing the credential in the command line, but this is getting ignored. Has anybody else done something similar?

Here is the command I am using to call the api:

curl -f -k -H"Authorization: Bearer xxxxxxxxxxxxxxxxx" -H "Content-Type: application/json" -d '{"extra_vars": {"vmname": "xxxx-52.eu-west-1.compute.internal", "app": "test123", "inventory_name":"linux" },"credential":6}' -XPOST https://tower/api/v2/job_templates/provision_linux++SEC_TOOL/launch/

Responses