Skip to content

Commit

Permalink
PMM-13483 Fix 'Restart Grafana with new plugins'
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Nov 20, 2024
1 parent 77c5d6b commit a968931
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions build/ansible/roles/dashboards/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
---
- name: Stop Grafana
community.general.supervisorctl:
name: grafana
state: stopped
become: true
become_user: pmm
become_method: su
register: stop_grafana

- name: Retrieve Percona plugins
find:
paths: /usr/share/percona-dashboards/panels/
Expand Down Expand Up @@ -44,11 +35,12 @@
mode: 0644
remote_src: yes

- name: Start Grafana
community.general.supervisorctl:
name: grafana
state: started
- name: Restart Grafana service with new plugins
shell: "supervisorctl {{ item }} grafana"
become: true
become_user: pmm
become_method: su
when: stop_grafana.changed == true
loop:
- stop
- remove
- add

0 comments on commit a968931

Please sign in to comment.