downloading files from ansible/awx play

262 views
Skip to first unread message

John Ratliff

unread,
Aug 10, 2022, 9:14:55 AM8/10/22
to AWX Project
I am creating some playbooks in ansible that I want to put into awx. These plays create some files that I want people to be able to download and examine.

On the ansible CLI, I've been storing temp files in tempdir created by ansible and then making the last part of the playbook tell the user where they are. Not a great user experience, but it works. It's much worse in awx though because the temp files will be inside the awx container (we are in a docker awx 13 deployment atm).

What's a good method for awx where I can put the files somewhere and give the user a link to them when the play is completed?

My first thought is an external server that the playbook can interact with to post the documents (scp, rsync, mongoDB, some web service, something) and give the user a link to that at the end.

Thanks for any suggestions.

--John

AWX Project

unread,
Aug 10, 2022, 2:17:29 PM8/10/22
to AWX Project
| My first thought is an external server that the playbook can interact with to post the documents (scp, rsync, mongoDB, some web service, something) and give the user a link to that at the end.

that is a good solution, we recommend doing that. The temp folder from the container is not persistent, so writing artifacts to this directory should be avoided.

AWX Team

John Ratliff

unread,
Aug 10, 2022, 2:27:26 PM8/10/22
to AWX Project
Thanks. That's what I'll do then.
Reply all
Reply to author
Forward
0 new messages