mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user