Refactor everything

This commit is contained in:
Tobias Reisinger 2023-12-14 02:20:13 +01:00
parent 2e100d290f
commit 3f2e60becf
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
69 changed files with 366 additions and 281 deletions
_ansible/roles/influxdb

View file

@ -1,8 +1,13 @@
---
- name: Set common facts
ansible.builtin.import_tasks: tasks/set-default-facts.yml
- name: Deploy {{ svc.name }}
tags:
- influxdb
- sensors
vars:
svc: "{{ influxdb_svc }}"
env: "{{ influxdb_env }}"
compose: "{{ influxdb_compose }}"
yml: "{{ influxdb_yml }}"
block:
- name: Import prepare tasks for common service
ansible.builtin.import_tasks: tasks/prepare-common-service.yml

View file

@ -1,11 +1,11 @@
---
svc:
influxdb_svc:
domain: tick.serguzim.me
name: influxdb
port: 8086
data_dir: /var/lib/influxdb2
svc_yml:
influxdb_yml:
assets-path: ""
bolt-path: "{{ (svc.data_dir, 'influxd.bolt') | path_join }}"
e2e-testing: false
@ -62,7 +62,7 @@ svc_yml:
vault-tls-server-name: ""
vault-token: ""
compose:
influxdb_compose:
watchtower: false
image: influxdb:2.7
volumes: