This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
shoarma/ansible/roles/prometheus/tasks/main.yml

14 lines
381 B
YAML
Raw Normal View History

- 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
2023-07-23 09:28:43 +00:00
- name: Deploy Docker stack
docker_stack:
name: prometheus
compose:
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"