add monitoring stack

This commit is contained in:
Pim Kunis 2023-08-01 16:24:00 +02:00
parent af2ee0a076
commit 3c4f505413
6 changed files with 138 additions and 0 deletions

View file

@ -0,0 +1,13 @@
- name: Create elasticsearch data source config
docker_config:
name: esdatasource
data: "{{ lookup('template', '{{ role_path }}/elasticsearch.yml') }}"
use_ssh_client: true
rolling_versions: true
register: esdatasource
- name: Deploy Docker stack
docker_stack:
name: monitoring
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"