Add influxdb to ansible

This commit is contained in:
Tobias Reisinger 2023-06-17 13:24:02 +02:00
parent 96fd62dc3d
commit 2500d672fb
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
12 changed files with 102 additions and 87 deletions
_ansible/roles/influxdb/tasks

View file

@ -0,0 +1,17 @@
---
- name: Deploy {{ svc.name }}
tags:
- influxdb
- sensors
block:
- import_tasks: steps/create-service-directory.yml
- import_tasks: steps/template-docker-compose.yml
- name: Template config
ansible.builtin.template:
src: service.yml.j2
dest: "{{ (service_path, 'influxdb.yml') | path_join }}"
mode: "0600"
- import_tasks: steps/template-site-config.yml
- import_tasks: steps/start-service.yml