templatizing grafana.ini

This commit is contained in:
Ludovic Cartier 2023-07-24 14:32:59 +02:00
parent a6c5dab19b
commit e43954bdd6
2 changed files with 6 additions and 3 deletions

View File

@ -36,12 +36,12 @@
notify: "grafana-prometheus-restart"
- name: "grafana-prometheus | create grafana.ini file"
file:
path: /opt/docker-compose/grafana-prometheus/grafana.ini
template:
src: conf/grafani.ini.j2
dest: /opt/docker-compose/grafana-prometheus/grafana.ini
owner: '1000'
group: '1000'
mode: '0750'
state: touch
notify: "grafana-prometheus-restart"
ignore_errors: '{{ ansible_check_mode }}'

View File

@ -0,0 +1,3 @@
[server]
domain = {{ grafana_domain }}
root_url = %(protocol)s://%(domain)s