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:
|
||||
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
|
||||
command: 'poetry install --no-dev --extras sentry'
|
||||
command:
|
||||
argv:
|
||||
- 'poetry install'
|
||||
- '--no-dev'
|
||||
- '--extras sentry'
|
||||
args:
|
||||
chdir: '{{ app_dir }}'
|
||||
environment:
|
||||
|
|
|
|||
Reference in a new issue