conference-website/playbooks/tasks/managepy.yaml

10 lines
307 B
YAML

---
- name: Run Django management command "{{ command }}"
changed_when: false
ansible.builtin.shell:
cmd: >
bash -ca 'source {{ env_file }} &&
{{ dir.source }}/.venv/bin/python {{ dir.source }}/manage.py {{ command }}'
chdir: "{{ dir.source }}"
register: management_command_output