# SPDX-License-Identifier: MIT
---
- name: Check if grafana-pcp is installed
  shell: |
    set -euo pipefail
    (cd /tmp && /usr/sbin/grafana-cli plugins ls) | grep performancecopilot
  changed_when: false

- name: Check the ansible_managed header in grafana.ini
  vars:
    __test_config_path: /etc/grafana/grafana.ini
  include_tasks: check_header.yml
