Ansible Galaxy pip Dependencies

Hello all,

I have a plugin that’s included with a role I intend for Ansible Galaxy.

https://galaxy.ansible.com/andrewvaughan/ansible-prompt/

I need, in this case, to have a Python pip dependency installed in order for the role to work correctly. I have not been able to find any documentation or questions regarding the installation of Python dependencies to support Ansible roles. Is this possible? If so, what is the best practice for making it work?

I suppose I could always add pip install -r ~/.ansible/roles/andrewvaughan.ansible-prompt/requirements.txt as an instruction in the readme, but that really takes away from the ease-of-use factor that Galaxy provides.

Thanks in advance,

Andrew

Typically you make it the first task in your role.

-Toshio