On Jun 27, 2014 5:08 AM, "Roman Dryndik" <[email protected]> wrote:
> I want to execute python setup.py develop command inside of virtualenv
using ansible.
> How to do it?
>
> Probably could be something like this:
>
>     - name: egg
>       shell: "python setup.py develop"

You can specify the path to the virtualenv's python, e.g.,

    shell: "/opt/venv/bin/python setup.py develop"

Or you could "source /opt/venv/bin/activate && python setup.py develop"

I usually have a var like virtualenv_path or virtualenv_python.

--michael

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BDX9L1SdGwZm_OS_SxYrffAS-n3nQT6o69Ya9JM_kU-t5ASyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to