AWX: Solution for accessing jinja rendered files after job completion

Hello everyone,

I’m rendering configuration files from Jinja templates in one of my playbooks and would like to access the resulting files in a different playbook run later.

Is this achievable?

I’ve looked for design suggestions on how to implement rendering files and using them in multi-stage playbook scenarios with AWX but haven’t found any.

Thanks for help!

Rendering with the template lookup might be a solution, or you might be able to fetch the files you templated out to a node and re-use them, though this seems “expensive”.


Hello @crc31 welcome to the community!

I haven’t tried it on AWX yet but I’ve done something similar with ansible-navigator: it may be possible to use a volume mount on kubernetes in the same way it is on docker.

Then you can save your templated files there so they persist on the pod’s storage volume after the AWX job’s container deletion. This way yo could retrieve them later from another AWX Job, etc etc



Thank you both for these two excellent solutions!

I’ve implemented both ideas now and will definitely use both variations again based on future needs.

Lots of love

1 Like

Hello Alex,

It’s nice to see we could help you with our suggestions!

May I ask you to tick the solved check on any of the answers provided? Since you implemented both successfully, I believe it doesn’t matter which one. Anyway, since @jpmens’s one came first, it’s only fair if you check his post as the “official” solution :smiling_face: This way, this thread will appear as solved on the forum’s Get Help category.

Thanks and see you around!

1 Like

I tried to tag both answers as “solutions,” but indeed that didn’t work.

If that happens again, I’ll express my gratitude in the future by sending you some good Westphalian craft beer. :slight_smile:


Hahaha no worries Alex, really! In fact this Westphalian craft beer you mention sounds great too :wink:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.