Targeting Multiple Distributions
So far, throughout the previous chapters, we have been targeting a single operating system, Ubuntu, when running on our playbooks.
This chapter will examine how to work with multiple Linux distributions within the same roles and playbooks.
We will take the WordPress playbook and the roles we created in Chapter 5, Deploying WordPress, and do the following:
- Discover what the difference is between our two target operating systems
- Look at and implement our WordPress roles, making them work on both target operating systems
- Discuss and apply best practices for targeting multiple distributions
The chapter covers the following topics:
- Debian and Red Hat
- Multi-distribution considerations
- Adapting the roles
- Running the playbook