upstream tests: Removal of 'warn: no' from shell plugins

The parameter 'warn' from ansible.builtin.shell was deprecated in
ansible-core version 2.11 and removed in version 2.14.

This patch removes the usage of this parameter from ansible-freeipa
tests, and adds 'deprecated-command-syntax' to the skip list of
ansible-lint configuration to cope with the change in the linter.
This commit is contained in:
Rafael Guterres Jeffman
2022-11-14 17:13:35 -03:00
parent 2cfa9af586
commit 6601ee3af5
10 changed files with 11 additions and 32 deletions

View File

@@ -225,11 +225,9 @@
register: result
failed_when: not result.changed or result.failed
- name: Remove certificate files.
- name: Remove certificate files. # noqa: deprecated-command-syntax
shell:
cmd: rm -f "private{{ item }}.key" "cert{{ item }}.pem" "cert{{ item }}.der" "cert{{ item }}.b64"
with_items: [1, 2, 3]
become: no
delegate_to: localhost
args:
warn: no # suppres warning for not using the `file` module.