Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana/v13.0/as-code/infrastructure-as-code/ansible.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana/v13.0/as-code/infrastructure-as-code/ansible/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Grafana Ansible collection
The Grafana Ansible collection provides configuration management resources for Grafana. You can use it to manage:
- Grafana Cloud stacks
- Dashboards
- Data sources
- Folders
- Alerting contact points
- Notification policies
- API keys
If your resources aren’t currently available in the Grafana Ansible collection, you can manage them on Grafana Cloud programmatically by writing Ansible playbooks that use the Ansible’s built-in URI module to call the HTTP APIs to manage resources for the Grafana Cloud portal, as well as those within a stack.
Learn more
Refer to Create and manage a Grafana Cloud stack using Ansible to learn how to create a Grafana Cloud stack and add a data source and dashboard using Ansible.
To learn more about managing Grafana with Infrastructure as code:
- Grafana Ansible collection documentation
- Ansible playbook best practices
- Grafana API documentation
- Grafana Cloud API documentation
- Infrastructure as Code with Terraform
Grafana Agent (deprecated)
Caution
Grafana Alloy is the new name for our distribution of the OTel collector. Grafana Agent has been deprecated and is in Long-Term Support (LTS) through October 31, 2025. Grafana Agent will reach an End-of-Life (EOL) on November 1, 2025. Read more about why we recommend migrating to Grafana Alloy.
The Ansible collection also houses Grafana Agent role, which is now deprecated.
Was this page helpful?
Related resources from Grafana Labs


