"command: yum clean all" warns and recommends using "warn: false" which generates an error #70746
Labels
affects_2.9
This issue/PR affects Ansible v2.9
bug
This issue/PR relates to a bug.
commands
Commands category
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
SUMMARY
When executing "command: yum clean all" Ansible generates an warning stating that the warning can be removed by using "warn: false" in the stanza. Another solution is to remove all warning by updating ansible.cfg.
When I add "warn: false" to the stanza I get the following error:
The code that is being operated on is:
ISSUE TYPE
COMPONENT NAME
command
ANSIBLE VERSION
2.9.9
CONFIGURATION
""
No output from command
OS / ENVIRONMENT
Ansible running on RHEL 7.8.
Client is also RHEL 7.8
STEPS TO REPRODUCE
Use stanza to perform a "yum clean all" and examine the warning that is generated.
Then implement "warn: false" in the stanza and see that it errors out immediately
EXPECTED RESULTS
I would expect that the warning would be suppressed
ACTUAL RESULTS
An immediate error before running any actions. This appears to be a linting error
The text was updated successfully, but these errors were encountered: