Hey All,
The project I’m working on has staging servers and productions servers. The staging servers need nginx/php/mysql, but no varnish. The production servers need nginx/php/varnish. I’ve written some generic playbook for nginx, php, varnish, mysql, etc., but am unsure as to how to properly set things up.
I originally had a playbook created specifically for my project/app, and was setting up dependancies in meta/main.yml, but quickly found this limited my control over what servers would get what playbooks. I then decided to modify my site.yml file to have different sections for different hosts. Setting up this way allows me to target certain hosts. But then the problem is how do I differentiate between staging and production?
I’d be happy to be a bit clearer with my question if need-be, I just didn’t want to throw too much in at once!
Thanks!
James