26 lines
496 B
YAML

---
- name: Add Grafana repo key
ansible.builtin.apt_key:
url: >-
https://apt.grafana.com/gpg.key
state: present
- name: Add Grafana repo
ansible.builtin.apt_repository:
repo: >-
deb https://apt.grafana.com stable main
state: present
- name: Install Grafana
ansible.builtin.apt:
name: grafana
state: present
update_cache: yes
- name: Build envfile
ansible.builtin.template:
src: grafana-server.j2
dest: /etc/default/grafana-server