Differentiating between different environment types
In almost every business, you will need to split your technology environment by type. For example, you will almost certainly have a development environment, where all the testing and development work is performed, and a production environment, where all of the stable test code is run. The environments should (in a best-case scenario) make use of the same Ansible playbooks—after all, the logic is that if you can successfully deploy and test an application in your development environment, then you should be able to deploy it in the same way in a production environment and have it work just as well. However, there are always differences between the two environments, not just in the hostnames but also sometimes in the parameters, the load balancer names, the port numbers, and so on—the list can seem endless.
In the The preferred directory layout section of this chapter, we covered a way of differentiating between a development...