Add reitanlage_oranienburg theme deploy playbook
This commit is contained in:
parent
3074cf1428
commit
e6cb8d661e
2 changed files with 37 additions and 0 deletions
24
playbooks/reitanlage-oranienburg-load-theme.yml
Normal file
24
playbooks/reitanlage-oranienburg-load-theme.yml
Normal 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
|
||||
13
playbooks/roles/reitanlage_oranienburg/tasks/load_theme.yml
Normal file
13
playbooks/roles/reitanlage_oranienburg/tasks/load_theme.yml
Normal 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
|
||||
Loading…
Reference in a new issue