From 6a278c011c772959d1d3f3c081aa7b7eeb3cea56 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 26 Oct 2017 22:27:54 +0200 Subject: [PATCH] Silence ansible-lint These warnings are ok, disable them. Change-Id: Ida5ecc81fdaed137ac10baa51643962a5e97b89d --- roles/install-nodejs/tasks/main.yaml | 3 +++ roles/version-from-git/tasks/main.yaml | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/roles/install-nodejs/tasks/main.yaml b/roles/install-nodejs/tasks/main.yaml index c03abbc4c..84dcd1dde 100644 --- a/roles/install-nodejs/tasks/main.yaml +++ b/roles/install-nodejs/tasks/main.yaml @@ -32,6 +32,9 @@ name: nodejs state: latest become: yes + tags: + # Ignore ANSIBLE0010: We really want latest version + - skip_ansible_lint - name: Output node version command: node --version diff --git a/roles/version-from-git/tasks/main.yaml b/roles/version-from-git/tasks/main.yaml index f203e661a..201a67530 100644 --- a/roles/version-from-git/tasks/main.yaml +++ b/roles/version-from-git/tasks/main.yaml @@ -4,7 +4,7 @@ register: scm_sha_output args: chdir: "{{ zuul_work_dir }}" - # Skip linting since it triggers on the "git" command, + # ANSIBLE0006: Skip linting since it triggers on the "git" command, # but rev-parse is not supported by ansible git module. tags: - skip_ansible_lint @@ -20,6 +20,10 @@ when: zuul.tag is not defined args: chdir: "{{ zuul_work_dir }}" + # ANSIBLE0006: Skip linting since it triggers on the "git" command, + # but describe is not supported by ansible git module. + tags: + - skip_ansible_lint - name: Set scm_sha fact from output set_fact: @@ -44,6 +48,10 @@ register: commits_since_tag_output args: chdir: "{{ zuul_work_dir }}" + # ANSIBLE0006: Skip linting since it triggers on the "git" command, + # but describe is not supported by ansible git module. + tags: + - skip_ansible_lint - name: Set commits_since_tag fact set_fact: