New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
per task silencing of warnings #13468
Comments
Agreed - I've just switched to 2.0, and I get warnings when I use 'git' to do something that the git module can't do, and 'tar' to do something that the unarchive module can't do. It would be very nice to be able to override them. |
It would be nice to have the warnings suppressed explicitly as above, but it can be done inline. Just add |
@quentinsf In this case it would be better to fix modules so they would not throw warnings on tasks they could not do. Silencing them would be just a work-around. In addition it would be great if |
shell has 'warn' option since 1.8 that controls this, closing as 'already implemented' |
Example usage:
|
Issue Type:
Feature Idea
Ansible Version:
ansible 2.0.0 (detached HEAD 958da26)
Ansible Configuration:
None.
Environment:
N/A
Summary:
If I have an task like
I get a bright pink warning
It'd be nice if this warning could be turned off on a per task basis. The warnings are useful in general, but sometimes they are false positives and the author knows better.
Steps To Reproduce:
Would not have the bright pink warning.
The text was updated successfully, but these errors were encountered: