Use argv option for command task

This commit is contained in:
Sonny Bakker 2021-07-19 19:17:42 +02:00
parent 5f57e03fba
commit 8ba7267ad3

View file

@ -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: