Correct way to reduce useless information

24 views
Skip to first unread message

Dejay Clayton

unread,
Mar 18, 2016, 4:00:12 PM3/18/16
to Ansible Project, Dejay Clayton
Hi,

I'm wondering if the latest version of Ansible allows developers to reduce the amount of useless information that is displayed while running playbooks.

For example, a reasonable way to code the "fail" module is to not display a bunch of useless "TASK [fail] skipping" output for tasks that succeed.  It's just stupid to display a bunch of text that essentially states, "I'm going to skip failing this task because everything worked properly."  Especially for reasonably complex operations that require multiple "fail" sanity checks.

Now, judging by the fact that approximately one million people upvoted the following request to selectively suppress the output of certain tasks, it's likely that I'll just have to keep accepting this stupid behavior from Ansible: https://github.com/ansible/ansible/issues/3324

I mean, that product decision is probably not quite as stupid as replacing "fail" with "fail_when", which doesn't even let developers specify custom error messages, amirite?
Reply all
Reply to author
Forward
0 new messages