From 2a5532c9a943cf34a5b3050a7c048f38412960f7 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Mon, 18 Nov 2019 17:26:24 +0000 Subject: [PATCH] Fix local_action and line_length>160 in common role - transitional handling of fluentd_binary var is no longer required Change-Id: Ic2978252fb981fe15e600aa486e8af585d05c402 --- ansible/roles/common/tasks/config.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ansible/roles/common/tasks/config.yml b/ansible/roles/common/tasks/config.yml index 12e9115576..d34fa0c6cf 100644 --- a/ansible/roles/common/tasks/config.yml +++ b/ansible/roles/common/tasks/config.yml @@ -49,7 +49,7 @@ - name: Set fluentd facts set_fact: - fluentd_binary: "{% if fluentd_labels.images.0.ContainerConfig.Labels.fluentd_binary is not defined %}{% if kolla_base_distro in 'ubuntu' and ansible_architecture == 'x86_64' %}td-agent{% else %}fluentd{% endif %}{% else %}{{ fluentd_labels.images.0.ContainerConfig.Labels.fluentd_binary }}{% endif %}" + fluentd_binary: "{{ fluentd_labels.images.0.ContainerConfig.Labels.fluentd_binary }}" when: enable_fluentd | bool - name: Copying over config.json files for services @@ -64,12 +64,12 @@ - "Restart {{ item.key }} container" - name: Find custom fluentd input config files - local_action: - module: find + find: path: "{{ node_custom_config }}/fluentd/input" pattern: "*.conf" run_once: True register: find_custom_fluentd_inputs + delegate_to: localhost when: - enable_fluentd | bool @@ -115,12 +115,12 @@ not enable_monasca | bool }}" - name: Find custom fluentd output config files - local_action: - module: find + find: path: "{{ node_custom_config }}/fluentd/output" pattern: "*.conf" run_once: True register: find_custom_fluentd_outputs + delegate_to: localhost when: - enable_fluentd | bool @@ -175,12 +175,12 @@ - Restart fluentd container - name: Find custom fluentd format config files - local_action: - module: find + find: path: "{{ node_custom_config }}/fluentd/format" pattern: "*.conf" run_once: True register: find_custom_fluentd_format + delegate_to: localhost when: - enable_fluentd | bool @@ -213,12 +213,12 @@ - Restart fluentd container - name: Find custom fluentd filter config files - local_action: - module: find + find: path: "{{ node_custom_config }}/fluentd/filter" pattern: "*.conf" run_once: True register: find_custom_fluentd_filters + delegate_to: localhost when: enable_fluentd | bool - name: Copying over fluentd filter config files