feat(pretix): add ansible role and playbook

This commit is contained in:
2025-09-13 16:43:19 +02:00
parent a1aea3ba10
commit 0c4447fba0
17 changed files with 238 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
---
- name: Ensure ansible facts are collected
ansible.builtin.setup:
gather_subset:
- "!all"
- "pkg_mgr"
- "distribution"
- "distribution_release"
- "distribution_version"
- "distribution_major_version"
- name: Ensure system packages are present (apt)
ansible.builtin.apt:
name: "{{ package }}"
state: "{{ pretix_state }}"
loop: "{{ pretix_packages[ansible_distribution | lower] }}"
loop_control:
loop_var: "package"
when: ansible_facts['pkg_mgr'] == 'apt'