ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
13.86k stars 3.4k forks source link

Nested workflows lose outer surveys/extra vars #7344

Open lxop opened 4 years ago

lxop commented 4 years ago
ISSUE TYPE
SUMMARY

In AWX I can create a workflow template containing another workflow template, which in turn contains a job template. I can set surveys and extra-vars on the inner workflow template and they will be available to the playbook that runs from the job template. However, if I set surveys or extra-vars on the outer workflow template, they are not passed on to the playbook.

ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS

The playbook runs, printing

xxx is outer extra vars
yyy is outer extra vars
zzz is outer extra vars
ACTUAL RESULTS

The playbook runs, and prints

xxx is inner extra vars
yyy is inner extra vars
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'zzz' is undefined [...]
blomquisg commented 4 years ago

@lxop can you reproduce this on AWX 12.0.0?

lxop commented 4 years ago

I'll try as soon as I get an opportunity to upgrade AWX

lxop commented 4 years ago

OK I've just tried this on AWX 13.0.0, and can confirm that the behaviour is still the same (I can reproduce this bug). @blomquisg

magick93 commented 4 years ago

I'm also facing the same problem.

mamatt commented 3 years ago

I'm also getting this issue in awx 19.0.

This is making nested workflow not really usable !

monk291991 commented 3 years ago

Did we get a solution for this ? i am still not able to resolve this issue :(