From 5cdfc1cfe72ac6448551408c2779a6fd158cf9c2 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Thu, 2 Feb 2023 12:59:38 +1100 Subject: [PATCH] ansible-lint: Ignore some command-instead-of-module warnings Picked up by ansible-lint 6.12.0, we can ignore these Note noqa flags not working; see https://github.com/ansible/ansible-lint/issues/2970 Change-Id: I33dc7a4756cf382aef6ba13c0762951ae18005d3 --- test-playbooks/base-roles/configure-mirrors.yaml | 2 ++ test-playbooks/python/upload-pypi.yaml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test-playbooks/base-roles/configure-mirrors.yaml b/test-playbooks/base-roles/configure-mirrors.yaml index cd26a9562..a53e7bef0 100644 --- a/test-playbooks/base-roles/configure-mirrors.yaml +++ b/test-playbooks/base-roles/configure-mirrors.yaml @@ -48,6 +48,8 @@ command: 'apt-get update' register: _apt_get_output become: yes + tags: + - skip_ansible_lint - name: Check for warnings in output fail: diff --git a/test-playbooks/python/upload-pypi.yaml b/test-playbooks/python/upload-pypi.yaml index 50f627aa2..ee912007b 100644 --- a/test-playbooks/python/upload-pypi.yaml +++ b/test-playbooks/python/upload-pypi.yaml @@ -34,7 +34,7 @@ # We tag this with the unix timestamp so that the upload always # has an increasing version number. - - name: Import sandbox project + - name: Import sandbox project # noqa command-instead-of-module shell: | git clone https://opendev.org/opendev/sandbox pushd sandbox @@ -42,6 +42,8 @@ python3 setup.py bdist_wheel args: executable: '/bin/bash' + tags: + - skip_ansible_lint # This value is restricted to uploading the sandbox package to # test.pypi.org; it is not kept in plain text to avoid things that