Use argv option for command task
This commit is contained in:
parent
5f57e03fba
commit
8ba7267ad3
1 changed files with 5 additions and 2 deletions
|
|
@ -37,9 +37,12 @@
|
||||||
environment:
|
environment:
|
||||||
PATH: '/home/{{ app_user }}/.local/bin:{{ poetry_user_path }}'
|
PATH: '/home/{{ app_user }}/.local/bin:{{ poetry_user_path }}'
|
||||||
|
|
||||||
# TODO allow ansible to run multiple flags (extras flag doesn't seem to be working)
|
|
||||||
- name: install project dependencies
|
- name: install project dependencies
|
||||||
command: 'poetry install --no-dev --extras sentry'
|
command:
|
||||||
|
argv:
|
||||||
|
- 'poetry install'
|
||||||
|
- '--no-dev'
|
||||||
|
- '--extras sentry'
|
||||||
args:
|
args:
|
||||||
chdir: '{{ app_dir }}'
|
chdir: '{{ app_dir }}'
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
Reference in a new issue