Skip to content

Commit

Permalink
PMM-7 Fix grafana start and stop (#3320)
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff authored Nov 19, 2024
1 parent 7d61381 commit 45998f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions build/ansible/roles/dashboards/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
- name: Stop and remove Grafana from Supervisor
shell: "supervisorctl {{ item }} grafana"
- name: Stop Grafana
community.general.supervisorctl:
name: grafana
state: stopped
become: true
become_user: pmm
become_method: su
loop:
- stop
- remove

- name: Retrieve Percona plugins
find:
Expand Down Expand Up @@ -42,12 +41,12 @@
owner: pmm
group: pmm
mode: 0644
remote_src: yes
remote_src: yes

- name: Restart Grafana service with new plugins
shell: "supervisorctl {{ item }} grafana"
- name: Start Grafana
community.general.supervisorctl:
name: grafana
state: started
become: true
become_user: pmm
become_method: su
loop:
- add
2 changes: 1 addition & 1 deletion build/ansible/roles/pmm-images/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@

- name: Run initialization playbook
include_role:
name: initialization
name: initialization

- name: Check supervisord logs
shell: sleep 10 && tail -n 200 /srv/logs/supervisord.log
Expand Down

0 comments on commit 45998f9

Please sign in to comment.