O'Reilly logo

Learning Ansible by Ramesh Raithatha, Madhurranjan Mohaan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Error Handling, Rollback, and Reporting

 

"If you shut the door to all errors, truth will be shut out."

 
 -- Rabindranath Tagore

The quote here applies to everything in life and not just infrastructure! However, since we're going to continue talking about infrastructure with a key focus on error handling, rollback, and alerting in this chapter, we thought we'd start the chapter on a philosophical note.

So far, we've seen how to write production-ready Ansible playbooks from a configuration management perspective and test the same to overcome any failure. Any time you write code, it's important to think of error handling, logging, alerting, and reporting and if it's based on infrastructure, it becomes even more important. Error handling ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required