Hello Team,

We have below grafana agent play.yaml  and inside dependency we have 
mentioned below content now issue is kafka_exporter role runs on all 
hosts.  We want only to run on broker host how to achieve it??

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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/54475e4a-625b-48ff-ba77-7ace64ae45edn%40googlegroups.com.

Reply via email to