If you have a droplet at DO and wish to deploy multiple projects to the same IP and each project is a separate repo do you need to run ansible-playbook -i hosts/production server.yml
for each project? It’s required for host files and DB but wondering if such a setup actual works without messing the other sites already present.
Idea is that I have a general domain like foobar.com. Each time a new project is started I can target a new subdomain for staging env. and then maybe a dedicated ip for the production site. This allows a single droplet to house all the staging sites.
Since each site is a separate repo I was unsure if this would work. Each time I had to deploy I would have to run the playbook to get the new subdomain setup which would then mess with existing?
I have this all working for single projects with separated droplets at DO but wanted to compact the staging to a single droplet for all staging sites.