templatizing grafana.ini
This commit is contained in:
parent
a6c5dab19b
commit
e43954bdd6
@ -36,12 +36,12 @@
|
|||||||
notify: "grafana-prometheus-restart"
|
notify: "grafana-prometheus-restart"
|
||||||
|
|
||||||
- name: "grafana-prometheus | create grafana.ini file"
|
- name: "grafana-prometheus | create grafana.ini file"
|
||||||
file:
|
template:
|
||||||
path: /opt/docker-compose/grafana-prometheus/grafana.ini
|
src: conf/grafani.ini.j2
|
||||||
|
dest: /opt/docker-compose/grafana-prometheus/grafana.ini
|
||||||
owner: '1000'
|
owner: '1000'
|
||||||
group: '1000'
|
group: '1000'
|
||||||
mode: '0750'
|
mode: '0750'
|
||||||
state: touch
|
|
||||||
notify: "grafana-prometheus-restart"
|
notify: "grafana-prometheus-restart"
|
||||||
ignore_errors: '{{ ansible_check_mode }}'
|
ignore_errors: '{{ ansible_check_mode }}'
|
||||||
|
|
||||||
|
3
templates/conf/grafana.ini.j2
Normal file
3
templates/conf/grafana.ini.j2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[server]
|
||||||
|
domain = {{ grafana_domain }}
|
||||||
|
root_url = %(protocol)s://%(domain)s
|
Loading…
x
Reference in New Issue
Block a user