1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_collection_pretix.git synced 2024-10-28 22:01:03 +01:00
ansible_collection_pretix/roles/pretix/tasks/install.yml
2024-10-08 02:02:42 +02:00

27 lines
783 B
YAML

---
- name: Prepare Python3 venv
become: true
become_user: "{{ pretix__user }}"
become_method: community.general.sudosu
ansible.builtin.pip:
name: "{{ item }}"
virtualenv: "{{ pretix__data }}/venv"
with_items: "{{ pretix__pip_packages }}"
- name: Migrate pretix
become: true
become_user: "{{ pretix__user }}"
become_method: community.general.sudosu
ansible.builtin.command:
cmd: "{{ pretix__data }}/venv/bin/python3 -m pretix migrate"
chdir: "{{ pretix__data }}"
changed_when: false
- name: Rebuild pretix
become: true
become_user: "{{ pretix__user }}"
become_method: community.general.sudosu
ansible.builtin.command:
cmd: "{{ pretix__data }}/venv/bin/python3 -m pretix rebuild"
chdir: "{{ pretix__data }}"
changed_when: false