mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-24 04:54:00 -07:00
Have command nanny tell you how to disable the warning (#34061)
* Have command nanny tell you how to disable the warning
This commit is contained in:
parent
790c06c079
commit
2e1c889275
2 changed files with 17 additions and 4 deletions
|
|
@ -43,7 +43,7 @@
|
|||
assert:
|
||||
that:
|
||||
- "tar.warnings | length() == 1"
|
||||
- "'Consider using unarchive module rather than running tar' in tar.warnings[0]"
|
||||
- "'Consider using the unarchive module rather than running tar' in tar.warnings[0]"
|
||||
|
||||
- name: use command to execute chown
|
||||
command: chown -h
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
assert:
|
||||
that:
|
||||
- "chown.warnings | length() == 1"
|
||||
- "'Consider using file module with owner rather than running chown' in chown.warnings[0]"
|
||||
- "'Consider using the file module with owner rather than running chown' in chown.warnings[0]"
|
||||
|
||||
- name: use command with unsupported executable arg
|
||||
command: ls /dev/null executable=/bogus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue