add prometheus service

This commit is contained in:
Pim Kunis 2023-07-23 11:28:43 +02:00
parent b40c6ca579
commit dad67c8731
5 changed files with 66 additions and 12 deletions

View file

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