9 lines
282 B
YAML
9 lines
282 B
YAML
---
|
|
- name: Run Django management command "{{ command }}"
|
|
ansible.builtin.shell:
|
|
cmd: >
|
|
bash -ca 'source {{ env_file }} &&
|
|
{{ venv_path }}/.venv/bin/python {{ venv_path }}/manage.py {{ command }}'
|
|
chdir: "{{ venv_path }}"
|
|
register: management_command_output
|