Skip to content

Commit

Permalink
PMM-13483 Start grafana only when it was successfully stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Nov 20, 2024
1 parent 600ee92 commit 4f107e7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build/ansible/roles/dashboards/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
---
- 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 @@ -34,3 +43,12 @@
group: pmm
mode: 0644
remote_src: yes

- name: Start Grafana
community.general.supervisorctl:
name: grafana
state: started
become: true
become_user: pmm
become_method: su
when: stop_grafana.changed == true

0 comments on commit 4f107e7

Please sign in to comment.