Skip to content

Commit 4dde7d0

Browse files
committed
install exporter based on role
1 parent 214d67b commit 4dde7d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

defaults/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ kafka_process_roles:
1919

2020
kafka_listener_address: "{{ ansible_default_ipv4.address }}"
2121

22-
use_kafka_exporter: true
2322
kafka_exporter_version: "1.6.0"
2423
kafka_exporter_archive: "kafka_exporter-{{ kafka_exporter_version }}.linux-amd64"
2524
kafka_exporter_checksum: "sha512:18a52a92f8c1ef06175f2cb7e12b81aed75b4a87884fb3c3120c6671e2b25e3a3b52dda02eb952ba22f892598c8a47c474b625d481701d83382650c8b4616550"

tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,5 @@
154154

155155
- name: Install, configure, and start kafka-exporter
156156
ansible.builtin.import_tasks: exporter.yml
157-
when: use_kafka_exporter
157+
when:
158+
- "'broker' in kafka_process_roles"

0 commit comments

Comments
 (0)