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/postgres/tasks/main.yml

22 lines
558 B
YAML
Raw Normal View History

---
- name: Run simple versionscheck (optional)
ansible.builtin.include_tasks:
file: 'versioncheck.yml'
when: packages__submodules_versioncheck | bool
- name: Make sure postgres is installed
ansible.builtin.include_tasks:
file: 'packages.yml'
when:
- ansible_pkg_mgr == "apt"
- name: Only apt is supported
ansible.builtin.fail:
msg: "Only debian based systems using apt are supported"
when:
- not ansible_pkg_mgr == "apt"
- name: Create pretix Configuration
ansible.builtin.include_tasks:
file: 'create_database.yml'