2024-10-08 01:51:38 +02:00
|
|
|
---
|
|
|
|
- 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 }}"
|
2024-10-08 02:02:42 +02:00
|
|
|
changed_when: false
|
2024-10-08 01:51:38 +02:00
|
|
|
|
|
|
|
- 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 }}"
|
2024-10-08 02:02:42 +02:00
|
|
|
changed_when: false
|