Ansible Galaxy pip Dependencies

16 views
Skip to first unread message

Andrew Vaughan

unread,
Dec 1, 2017, 7:17:02 PM12/1/17
to Ansible Project
Hello all,

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


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

Toshio Kuratomi

unread,
Dec 2, 2017, 10:10:40 AM12/2/17
to ansible...@googlegroups.com
Typically you make it the first task in your role.

-Toshio

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/01d99259-23ee-4c12-8abf-61a76b1f3c49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages