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/configure.yml
2024-10-08 01:51:38 +02:00

23 lines
568 B
YAML

---
- name: Create directory for pretix data
become: true
ansible.builtin.file:
path: "{{ item }}"
state: 'directory'
mode: '0751'
owner: "{{ pretix__user }}"
group: "{{ pretix__group }}"
with_items:
- '/etc/pretix'
- "{{ pretix__data }}"
- "{{ pretix__data }}/data"
- "{{ pretix__data }}/data/media"
- name: Create pretix config
become: true
ansible.builtin.template:
src: 'templates/pretix.cfg.j2'
dest: '/etc/pretix/pretix.cfg'
mode: '0600'
owner: "{{ pretix__user }}"
group: "{{ pretix__group }}"