mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Restarting grafana on build/deploy.
This commit is contained in:
parent
ce34d598ca
commit
5915ee1a3e
3 changed files with 14 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
image: prometheuscommunity/elasticsearch-exporter:latest
|
||||
pull: yes
|
||||
state: started
|
||||
command: '--es.uri=http://db_elasticsearch:9200'
|
||||
command: '--es.uri=http://elasticsearch:9200'
|
||||
hostname: "{{ inventory_hostname }}"
|
||||
restart_policy: unless-stopped
|
||||
container_default_behavior: no_defaults
|
||||
|
|
5
ansible/roles/grafana/handlers/main.yml
Normal file
5
ansible/roles/grafana/handlers/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: restart grafana
|
||||
become: yes
|
||||
command: docker restart grafana
|
||||
listen: restart grafana
|
|
@ -3,6 +3,7 @@
|
|||
template:
|
||||
src: /srv/newsblur/docker/grafana/grafana.ini.j2
|
||||
dest: /srv/newsblur/docker/grafana/grafana.ini
|
||||
notify: restart grafana
|
||||
|
||||
- name: Register grafana in consul
|
||||
tags: consul
|
||||
|
@ -33,3 +34,10 @@
|
|||
- /srv/newsblur/docker/volumes/grafana_data:/var/lib/grafana
|
||||
- /srv/newsblur/docker/grafana/datasources/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
|
||||
- /srv/newsblur/docker/grafana/dashboards/:/etc/grafana/provisioning/dashboards/
|
||||
|
||||
- name: Restart grafana
|
||||
debug:
|
||||
msg: Restarting grafana
|
||||
changed_when: yes
|
||||
notify:
|
||||
- restart grafana
|
||||
|
|
Loading…
Add table
Reference in a new issue