From ebfe93775c3ba2ec30686e452606d6e1ebeded0d Mon Sep 17 00:00:00 2001 From: Roberto Alfieri Date: Wed, 11 Oct 2023 12:07:35 +0200 Subject: [PATCH] Make `edpm_telemetry` role compliant with ansible-lint `production` profile - Fixed spacing issue - Declared dicts in loop using long form to avoid line > 160 characters Signed-off-by: Roberto Alfieri --- .../tasks/deploy_ceilometer.yml | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/roles/edpm_telemetry/tasks/deploy_ceilometer.yml b/roles/edpm_telemetry/tasks/deploy_ceilometer.yml index 9d9263245..4c7d1e010 100644 --- a/roles/edpm_telemetry/tasks/deploy_ceilometer.yml +++ b/roles/edpm_telemetry/tasks/deploy_ceilometer.yml @@ -20,8 +20,8 @@ path: "{{ item.path }}" state: directory setype: "{{ item.setype | default('container_file_t') }}" - owner: "{{ansible_user}}" - group: "{{ansible_user}}" + owner: "{{ ansible_user }}" + group: "{{ ansible_user }}" mode: "{{ item.mode | default('750') }}" recurse: true loop: @@ -52,12 +52,18 @@ mode: "{{ item.mode | default('640') }}" remote_src: "{{ telemetry_test | default('false') }}" loop: - - { "src": "{{ edpm_ceilometer_config_src }}/ceilometer.conf", "dest": "{{ edpm_ceilometer_config_dest }}/ceilometer/ceilometer.conf" } - - { "src": "{{ edpm_ceilometer_config_src }}/polling.yaml", "dest": "{{ edpm_ceilometer_config_dest }}/ceilometer/polling.yaml" } - - { "src": "{{ edpm_ceilometer_config_src }}/ceilometer_agent_compute.json", "dest": "{{ edpm_ceilometer_config_dest }}/containers/ceilometer_agent_compute.json" } - - { "src": "{{ edpm_ceilometer_config_src }}/ceilometer-agent-compute.json", "dest": "{{ edpm_ceilometer_config_dest }}/ceilometer/ceilometer-agent-compute.json" } - - { "src": "{{ edpm_ceilometer_config_src }}/ceilometer_agent_ipmi.json", "dest": "{{ edpm_ceilometer_config_dest }}/containers/ceilometer_agent_ipmi.json" } - - { "src": "{{ edpm_ceilometer_config_src }}/ceilometer-agent-ipmi.json", "dest": "{{ edpm_ceilometer_config_dest }}/ceilometer/ceilometer-agent-ipmi.json" } + - "src": "{{ edpm_ceilometer_config_src }}/ceilometer.conf" + "dest": "{{ edpm_ceilometer_config_dest }}/ceilometer/ceilometer.conf" + - "src": "{{ edpm_ceilometer_config_src }}/polling.yaml" + "dest": "{{ edpm_ceilometer_config_dest }}/ceilometer/polling.yaml" + - "src": "{{ edpm_ceilometer_config_src }}/ceilometer_agent_compute.json" + "dest": "{{ edpm_ceilometer_config_dest }}/containers/ceilometer_agent_compute.json" + - "src": "{{ edpm_ceilometer_config_src }}/ceilometer-agent-compute.json" + "dest": "{{ edpm_ceilometer_config_dest }}/ceilometer/ceilometer-agent-compute.json" + - "src": "{{ edpm_ceilometer_config_src }}/ceilometer_agent_ipmi.json" + "dest": "{{ edpm_ceilometer_config_dest }}/containers/ceilometer_agent_ipmi.json" + - "src": "{{ edpm_ceilometer_config_src }}/ceilometer-agent-ipmi.json" + "dest": "{{ edpm_ceilometer_config_dest }}/ceilometer/ceilometer-agent-ipmi.json" tags: - edpm_telemetry