grafana-agent-play.yaml
- name: "GRAgent Play"
hosts: all:!localhost
strategy: linear
order: sorted
become: no
gather_facts: True
# See bug https://github.com/grafana/grafana-ansible-collection/issues/153 for parallel runs.
serial:
- 3
- 25%
- 50%
- 100%
vars:
ansible_remote_tmp: /tmp
tasks:
- name: Run roles under dependencies
ansible.builtin.include_role:
name: "{{ dependent_role }}"
with_items: "{{ dependencies }}"
loop_control:
loop_var: dependent_role
tags: ['always', 'install']
dependencies.yaml
---
dependencies:
- grafana.grafana.grafana_agent
- kafka_gra_config
- kafka_exporter