Recently, I’ve updated my AWX environment from 6.0 (lol) to 19.0
I’ve done a clean installation of 19.0 and imported the projects, workflows, jobs, etc… through tower-cli.
My workflow templates are ignoring the limit flag configured on the jobs.
When I add the job template on the workflow, he asks me for the LIMIT (the prompted option) and I configure with my parameteres. But, when I run the workflow, the workflow job ignores the LIMIT configuration I’ve put before and try to execute the job at the inventory.
Fun fact: I have 3 workflows. One of them works perfectly, the two anothers are bugged.
I tried to create another workflows for testing purposes, but I had no success.
Can you guys help me? I had to create a job template for every server, hard coding the servername on the limit flag so I can deploy our application in our servers.
(I used vscode rest api for run this code, you can use curl for that too)
And the workflow will work as expected.
The bug consists in the AWX GUi, when you create a workflow, the default parameters are ignored, so limit, scm_branch and ask_variables_on_launch are always a blank space.
for LIMIT variables, AWX interpreters you don’t have a LIMIT and try to execute the job on all hosts on your inventory.