Add reitanlage_oranienburg theme deploy playbook

This commit is contained in:
Tobias Reisinger 2026-11-08 23:57:49 +01:00
commit e6cb8d661e
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,24 @@
---
- name: Prepare opentofu
hosts: localhost
gather_facts: false
tasks:
- name: Import tasks to prepare opentofu
ansible.builtin.import_tasks: tasks/prepare-opentofu.yml
- name: Load theme for reitanlage-oranienburg
hosts: serguzim_net
vars_prompt:
- name: reitanlage_oranienburg_theme_version
prompt: RO theme version
private: false
tasks:
- name: Load secrets
ansible.builtin.import_tasks: tasks/load-secrets.yml
tags: always
- name: Run load_theme task
ansible.builtin.include_role:
name: reitanlage_oranienburg
tasks_from: load_theme.yml
when: inventory_hostname == all_services.reitanlage_oranienburg.host

View file

@ -0,0 +1,13 @@
---
- name: Set common facts
ansible.builtin.import_tasks: tasks/set-default-facts.yml
- name: Load theme from repo
community.docker.docker_compose_v2_exec:
service: app
command: >
bin/gpm direct-install -y
"https://git.serguzim.me/serguzim/reitanlage-oranienburg/releases/download/{{ reitanlage_oranienburg_theme_version }}/reitanlage-oranienburg-{{ reitanlage_oranienburg_theme_version }}.zip"
project_src: "{{ service_path }}"
become: true
changed_when: true