Add influxdb to ansible
This commit is contained in:
parent
96fd62dc3d
commit
2500d672fb
12 changed files with 102 additions and 87 deletions
_ansible/roles/influxdb/tasks
17
_ansible/roles/influxdb/tasks/main.yml
Normal file
17
_ansible/roles/influxdb/tasks/main.yml
Normal 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
|
Reference in a new issue