Hi,
I would need advice for following tasks:
*1)*
*What I want to do as shell command:*
gdal-config --version | cut -c 1-5 | xargs -I % pip install
'pygdal>=%.0,<=%.999'
Is it possible to use above pipe´s return as version with pip module *or
should I use just command module*?
- name: Install correct Version of pygdal
pip:
name: pygdal
version: 2.2.1.3 # this should be dynamic as above
virtualenv: "/home/ts/.venv/foo"
*2.)*
*Is there some nicer way of using django-admin with a virtualenv as using a
command module like:*
- name: Create new Django project from template
command: "/home/ts/.venv/foo/bin/django-admin startproject
--template=./some-project -e py,rst,json,yml,ini,env,sample -n Dockerfile
my_foo"
args:
chdir: "/home/ts/foo/"
creates: "/home/ts/foo/my_foo"
*3)*
*What I want to do as shell command:*
source /home/ts/.venv/foo/bin/activate
cd /home/ts/foo
pip install -e . --upgrade
Is this correctly translated?
- name: Upgrade pip packages
pip:
name: "/home/ts/foo"
editable: true
virtualenv: "/home/ts/.venv/foo"
extra_args: --upgrade
Thanks.
– Toni
--
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/8e1e2f7f-375e-46cd-82d3-cabe060ef55d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.