ansible
SKILL.md
Ansible / AWX
Infrastructure automation.
Environment
export AWX_URL="https://awx.example.com"
export AWX_TOKEN="xxxxxxxxxx"
List Job Templates
curl "$AWX_URL/api/v2/job_templates/" -H "Authorization: Bearer $AWX_TOKEN"
Launch Job
curl -X POST "$AWX_URL/api/v2/job_templates/{id}/launch/" \
-H "Authorization: Bearer $AWX_TOKEN" \
-H "Content-Type: application/json" \
-d '{"extra_vars": {"host": "webserver"}}'
Get Job Status