add plattform services

This commit is contained in:
Marcel Arndt
2026-01-05 16:01:40 +01:00
parent e25d8dd5d9
commit 193319fa52
65 changed files with 4240 additions and 39 deletions
+47
View File
@@ -0,0 +1,47 @@
---
- name: KESTRA | Ensure data directory
ansible.builtin.file:
path: '{{ data_dir }}/data/data'
state: directory
mode: '0755'
run_once: true
delegate_to: "{{ groups['managers'][0] }}"
- name: KESTRA | Ensure db directory
ansible.builtin.file:
path: '{{ data_dir }}/data/db'
state: directory
mode: '0755'
run_once: true
delegate_to: "{{ groups['managers'][0] }}"
- name: KESTRA | Konfigurationsdatei für tmpfiles.d erstellen
ansible.builtin.copy:
content: "d /tmp/kestra-wd 0755 root root -"
dest: /etc/tmpfiles.d/kestra-wd.conf
owner: root
group: root
mode: '0644'
- name: KESTRA | Create Kestra working directory
ansible.builtin.file:
path: /tmp/kestra-wd
state: directory
mode: '0755'
- name: KESTRA | Generate Compose file
ansible.builtin.template:
src: docker-compose.yml.j2
dest: '{{ data_dir }}/kestra.yml'
mode: 0644
run_once: true
delegate_to: "{{ groups['managers'][0] }}"
- name: KESTRA | Deploy stack
community.docker.docker_stack:
state: present
name: kestra
compose:
- /mnt/cephfs/kestra/kestra.yml
delegate_to: "{{ groups['managers'][0] }}"
run_once: true