set up otel stack

This commit is contained in:
Jef Roosens 2026-04-04 21:59:17 +02:00
parent 74f8edf024
commit f58bf336d6
Signed by: Jef Roosens
GPG key ID: 21FD3D77D56BAF49
16 changed files with 2423 additions and 0 deletions

View file

@ -0,0 +1,39 @@
---
- name: Ensure systemd directory is present
ansible.builtin.file:
path: '/home/debian/.config/containers/systemd'
state: 'directory'
mode: '0755'
owner: 'debian'
group: 'debian'
- name: Ensure data directory permissions are correct
ansible.builtin.file:
path: '{{ greptimedb_data_dir }}'
state: directory
owner: 'debian'
group: 'debian'
become: true
- name: Ensure Quadlet files are present
ansible.builtin.template:
src: "greptimedb.container.j2"
dest: "/home/debian/.config/containers/systemd/greptimedb.container"
mode: '0755'
owner: 'debian'
group: 'debian'
notify: 'restart greptimedb'
# - name: Ensure stack is deployed
# ansible.builtin.shell:
# chdir: '/etc/miniflux'
# cmd: 'docker compose up -d --remove-orphans'
# when: 'res.changed'
# - name: Ensure backup script is present
# ansible.builtin.copy:
# src: 'miniflux.backup.sh'
# dest: '/etc/backups/miniflux.backup.sh'
# owner: 'root'
# group: 'root'
# mode: '0644'