I am looking into upgrading Grafana from 6.6.2 to the latest, so I can then use newer dashboards that require newer Grafana versions. We use Ansible playbooks to deploy everything whenever we make a change (by issuing
ansible-playbook prometheus.yml --become). But, as you will notice in that code snippet, most changes are to the prometheus.yml playbook. I have never run the grafana.yml playbook yet. When I started my position, this was all already set up, so I basically just looked through all the configuration files trying to understand how it all worked. When I log into our existing Grafana and go to Configuration, I do see at the bottom “New Version Available!” with a download icon. Can I click this and will it auto-update?? EDIT: I realized I have a test Grafana server and clicked the New Version Available! button. It just takes you to the Download Page on grafana.com. I was able to update it by simply running two commands:
wget https://dl.grafana.com/oss/release/grafana-8.0.5-1.x86_64.rpm sudo yum install grafana-8.0.5-1.x86_64.rpm
… so now I guess I’m just wondering how/where to change anything in any of my Ansible playbooks or config files… to update my production Grafana instance.
I realize I might be posting this in the wrong forum entirely, and maybe should be in the Ansible forums, but it’s worth a shot posting here. The reason I’m trying to find out how to do it via Ansible is because I have a feeling if I manually update it via the GUI, the next time I run prometheus.yml, it might revert back to the old version because of something I don’t quite understand. I have “imported” some dashboards via the GUI, and I also have a feeling if/when I run grafana.yml, those manually imported dashboards will disappear, because I don’t see them listed in the grafana.yml file.
I can’t find anything regarding “version” in my grafana.yml file, but at the bottom I see:
roles: - cloudalchemy.grafana
Ansible.com boasts “Simple, agentless IT automation that anyone can use”. I sort of disagree with that as I’m still trying to understand it all. Maybe if you grew up in code-land, it would be easy. I grew up in GUI land.