From 7c046ee9a4e843c872d3ce6cc998f38894610cc8 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Fri, 4 May 2018 11:22:08 +0100 Subject: [PATCH] Only copy custom fluentd filters when fluentd is enabled Change-Id: Iedf87342eeee90d58734ba21216296f3d94f76c8 TrivialFix --- ansible/roles/common/tasks/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/common/tasks/config.yml b/ansible/roles/common/tasks/config.yml index 2ad3f2fc81..63d52beee2 100644 --- a/ansible/roles/common/tasks/config.yml +++ b/ansible/roles/common/tasks/config.yml @@ -137,6 +137,7 @@ pattern: "*.conf" run_once: True register: find_custom_fluentd_filters + when: enable_fluentd | bool - name: Copying over custom fluentd filter config files template: @@ -146,6 +147,7 @@ become: true register: fluentd_filter_custom with_items: "{{ find_custom_fluentd_filters.files }}" + when: enable_fluentd | bool notify: - Restart fluentd container