AWX won't write rendered j2 template to directory

Hello,

I’ve got an issue that makes no sense to me. I have a Playbook that renders a j2 template into a config file. If I run the Playbook from the CLI (ansible-playbook file.yaml), the template is rendered and written out into the appropriate directory with no issue.

If I run it from AWX, it shows a “changed” status - as if it’s rendering/writing for the first time - but it never writes the configuration out to the filesystem. AWX shows that the job finishes successfully. If you re-run the job, it shows the status as still “changed”.

If you run the Play from the CLI, it will change the first time (as it should), and subsequent runs show no change due to idempotency.

Running the same version of Ansible at the CLI as in AWX (2.9.11). Running AWX 14.1.0.

Here’s my Play (uncomment the first “hosts” var for CLI, uncomment the second for AWX (have a static “devices” var defined in the job template…AWX picks it up just fine):