16 lines
467 B
YAML
16 lines
467 B
YAML
---
|
|
- name: Regenerate prometheus config and restart container
|
|
hosts: observability_hub
|
|
become: true
|
|
tasks:
|
|
- name: Generate Prometheus config from template
|
|
ansible.builtin.template:
|
|
src: templates/prometheus.yml.j2
|
|
dest: "{{ container_data_base_path }}/prometheus/prometheus.yml"
|
|
|
|
- name: Restart prometheus container
|
|
community.docker.docker_container:
|
|
name: prometheus
|
|
state: started
|
|
restart: true
|