Merge pull request #984 from rjeffman/tests_shell_warn_removal

upstream tests: Removal of 'warn: no' from shell plugins
This commit is contained in:
Thomas Woerner
2022-11-17 16:18:00 +01:00
committed by GitHub
10 changed files with 11 additions and 32 deletions

View File

@@ -1549,11 +1549,8 @@
- name: Cleanup test environment.
include_tasks: env_cleanup.yml
- name: Remove certificate files.
shell:
cmd: rm -f "private{{ item }}.key" "cert{{ item }}.pem" "cert{{ item }}.der" "cert{{ item }}.b64"
- name: Remove certificate files. # noqa: deprecated-command-syntax
ansible.builtin.shell: rm -f "private{{ item }}.key" "cert{{ item }}.pem" "cert{{ item }}.der" "cert{{ item }}.b64"
with_items: [1]
become: no
delegate_to: localhost
args:
warn: no # suppres warning for not using the `file` module.

View File

@@ -99,11 +99,9 @@
register: result
failed_when: 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.

View File

@@ -98,11 +98,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.

View File

@@ -214,11 +214,9 @@
update_dns: yes
state: absent
- 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]
become: no
delegate_to: localhost
args:
warn: no # suppres warning for not using the `file` module.

View File

@@ -100,11 +100,9 @@
- name: Destroy Kerberos tickets.
shell: kdestroy -A -q -c ${KRB5CCNAME}
- 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]
become: no
delegate_to: localhost
args:
warn: no # suppres warning for not using the `file` module.

View File

@@ -80,11 +80,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.

View File

@@ -93,11 +93,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.

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.

View File

@@ -161,11 +161,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.

View File

@@ -54,11 +54,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]
become: no
delegate_to: localhost
args:
warn: no # suppres warning for not using the `file` module.