From 0e1abb285872c2f677e3e382f9e7fd13abc76ed9 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Fri, 30 Jun 2023 16:55:59 +0200 Subject: [PATCH] Remove warn argument for command/shell Since ansible-core 2.14 you can't use warn as module argument. Instead, a tag is used to instruct ansible-lint to supress alerts. Change-Id: I4ceeee4bf6c1020851824450ec7b30f6d14573f3 --- tasks/python_venv_install_symlink.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/python_venv_install_symlink.yml b/tasks/python_venv_install_symlink.yml index 82f9e50..0522852 100644 --- a/tasks/python_venv_install_symlink.yml +++ b/tasks/python_venv_install_symlink.yml @@ -28,10 +28,10 @@ {{ (ansible_facts['pkg_mgr'] == 'apt') | ternary('dpkg -L ' ~ (venv_packages_to_symlink | join(' ')), 'rpm -ql ' ~ (venv_packages_to_symlink | join(' ')) ) }} | egrep '^.*{{ _venv_python_major_version }}.*/(site|dist)-packages/.*' | egrep -v "__pycache__" - args: - warn: no changed_when: false register: _python_files + tags: + - skip_ansible_lint - name: Link the python host package files into venv vars: