Files
aurbis/tasks/stroopwafel.yml
T
2026-10-07 18:23:28 +02:00

35 lines
1.1 KiB
YAML

- name: Include stroopwafel vault
include_vars:
dir: stroopwafel
files_matching: vault.yml
- import_tasks: gitea_checkout.yml
vars:
checkout_repo: "{{ stroopwafel_repo }}"
checkout_dest: "{{ stroopwafel_dir }}"
checkout_version: "{{ stroopwafel_version }}"
- name: Deploy stroopwafel .env
copy:
content: "{{ stroopwafel_env_b64 | b64decode }}"
dest: "{{ stroopwafel_dir }}/.env"
owner: root
group: "{{ service_group | default('aurbis') }}"
mode: "0660"
when: stroopwafel_env_b64 is defined
no_log: true
- name: Copy docker-compose file
template:
src: stroopwafel/docker-compose.yml.j2
dest: "{{ stroopwafel_dir }}/docker-compose.yml"
owner: root
group: "{{ service_group | default('aurbis') }}"
mode: "0664"
- name: Start stroopwafel
community.docker.docker_compose_v2:
project_src: "{{ stroopwafel_dir }}"
build: policy
- name: Restart stroopwafel on new code
community.docker.docker_compose_v2:
project_src: "{{ stroopwafel_dir }}"
state: restarted
when: checkout_pull is changed