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
This commit is contained in:
Dmitriy Rabotyagov 2023-06-30 16:55:59 +02:00
parent 01a08f39bb
commit 0e1abb2858
1 changed files with 2 additions and 2 deletions

View File

@ -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: