From 88c53da22ffc7449cd14dde4dd792502ff1bd472 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Fri, 21 Aug 2020 09:26:15 +0200 Subject: [PATCH] Fix ansible-lint after upgrade to 4.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3a31c74608b48919c1563bac88313a8c4219dedc Co-Authored-By: Radosław Piliszek --- .ansible-lint | 7 ++++++- ansible/roles/horizon/tasks/policy_item.yml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.ansible-lint b/.ansible-lint index f10b027c81..676bf46834 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -9,4 +9,9 @@ skip_list: - '301' # [E503] Tasks that run when changed should likely be handlers # TODO(mnasiadka): Rework baremetal role to do handlers instead of when: *.changed - - '503' \ No newline at end of file + - '503' +# [E106] Role name {} does not match ``^[a-z][a-z0-9_]+$`` pattern' + - '106' +# [E208] permissions not mentioned +# FIXME(mnasiadka): Rework file/template to include permissions + - '208' diff --git a/ansible/roles/horizon/tasks/policy_item.yml b/ansible/roles/horizon/tasks/policy_item.yml index acef7be579..7350dc7554 100644 --- a/ansible/roles/horizon/tasks/policy_item.yml +++ b/ansible/roles/horizon/tasks/policy_item.yml @@ -2,7 +2,7 @@ - name: Update policy file name set_fact: - supported_policy_files: "{{ supported_policy_format_list | map('regex_replace', '(.+)', '{{ project_name }}_\\1') | list }}" + supported_policy_files: "{{ supported_policy_format_list | map('regex_replace', '(.+)', project_name + '_\\1') | list }}" - name: Check if policies shall be overwritten stat: