diff --git a/playbooks/playbook.yml b/playbooks/playbook.yml index cba26a8..862c9a7 100644 --- a/playbooks/playbook.yml +++ b/playbooks/playbook.yml @@ -59,6 +59,8 @@ ansible.builtin.include_role: name: amq_streams_exporter tasks_from: validate.yml + when: + - amq_streams_exporter_enabled is defined and amq_streams_exporter_enabled - name: "Ensures topics exist." ansible.builtin.include_role: diff --git a/roles/amq_streams_exporter/defaults/main.yml b/roles/amq_streams_exporter/defaults/main.yml index 4fe2e80..a423a32 100644 --- a/roles/amq_streams_exporter/defaults/main.yml +++ b/roles/amq_streams_exporter/defaults/main.yml @@ -1,5 +1,5 @@ --- -#amq_streams_exporter_target_system: "{{ ansible_system | lower }}" +amq_streams_exporter_enabled: True amq_streams_exporter_target_arch: "{{ ansible_architecture }}" amq_streams_exporter_version: 1.7.0 amq_streams_exporter_download_base_url: 'https://github.com/danielqsj/kafka_exporter/releases/download/'