Hi I'm trying to see if I can use Ansible to run some tests on network devices. My goal is to execute a lot of "tests", similar to unit tests in software dev, and report what passed and what failed at the end. Right now I'm facing 2 issues that are making it complicated and I would be interested to hear people's feedback here to see if there is a better solution available.
*1/ When a task fails, all remaining tests for this device are not executed.* This is problematic because I would like to have all tests executed all the time and have a clear "report" of how many passed or failed. Today I use "ignore_errors: true" but it's not ideal as if changes the summary. Is there a way to execute all tasks, even after a failure and keep the summary consistent ? *2/ When a task fails, the complete value returned is printed on screen without much formatting,* If makes it difficult to understand why it fails in the first place and it can generate a lot of noise on the screen. Is it possible to print only a portion of the value returned by a module on failure and access the remaining part as a variable. Thanks Damien -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3e004aac-6d57-4e37-a223-1257a88bb12c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.