feat(pretix): add ansible role and playbook
This commit is contained in:
19
roles/pretix/tasks/prepare-systemd.yml
Normal file
19
roles/pretix/tasks/prepare-systemd.yml
Normal 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'
|
Reference in New Issue
Block a user