diff --git a/build/ansible/roles/dashboards/tasks/main.yml b/build/ansible/roles/dashboards/tasks/main.yml index fdf0effcc1..c43984663d 100644 --- a/build/ansible/roles/dashboards/tasks/main.yml +++ b/build/ansible/roles/dashboards/tasks/main.yml @@ -1,12 +1,4 @@ --- -- name: Stop Grafana - community.general.supervisorctl: - name: grafana - state: stopped - become: true - become_user: pmm - become_method: su - - name: Retrieve Percona plugins find: paths: /usr/share/percona-dashboards/panels/ @@ -43,10 +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 + loop: + - stop + - remove + - add