Summary

In this chapter, we have adapted our WordPress installation playbook to target multiple operating systems. We did this by using Ansible's inbuilt auditing module to determine which operating system the playbook is running against and running just the tasks that will work on the target operating system.

In the next chapter, we are going to make a start at looking at some core Ansible modules that deal with networking.

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.