From 93859113988ff020b5f651f7930d567d55e4217f Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Tue, 14 Jan 2020 14:07:28 +0100 Subject: [PATCH] Ansible lint: task names - horizon Change-Id: I1f8d80d2c655f15b8591aea95af81263581ebaaf --- ansible/roles/horizon/tasks/policy_item.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ansible/roles/horizon/tasks/policy_item.yml b/ansible/roles/horizon/tasks/policy_item.yml index 4df630b398..acef7be579 100644 --- a/ansible/roles/horizon/tasks/policy_item.yml +++ b/ansible/roles/horizon/tasks/policy_item.yml @@ -1,7 +1,7 @@ --- -# Update policy file name -- set_fact: +- name: Update policy file name + set_fact: supported_policy_files: "{{ supported_policy_format_list | map('regex_replace', '(.+)', '{{ project_name }}_\\1') | list }}" - name: Check if policies shall be overwritten @@ -18,7 +18,8 @@ loop_control: loop_var: fullpath -- set_fact: +- name: Update custom policy file name + set_fact: custom_policy: "{{ custom_policy }} + [ '{{ overwritten_files.results.0.stat.path }}' ]" when: - overwritten_files.results