--- - name: add grafana apt key ansible.builtin.apt_key: url: https://packages.grafana.com/gpg.key state: present - name: configure apt repository ansible.builtin.apt_repository: repo: "deb https://packages.grafana.com/oss/deb stable main" filename: grafana update_cache: true state: present