Best practice for multiple sites on multiple servers

Sounds good, @fullyint. Thanks!

I was looking at your suggestion on a previous post where you have a situation where you might have a client who owns multiple servers for different projects and wish to have only one trellis installation.

-- trellis
-- site1
-- site2

My hosts/production file will look like this.

site1 ansible_ssh_host=IP1
site2 ansible_ssh_host=IP2

[production]
site1
site2

[web]
site1
site2

And I created the hosts_folder like this:

host_vars
-- site1
---- wordpress_sites.yml
-- site2
---- wordpress_sites.yml

What should I run to provision server on IP2? Am I going the right way?

1 Like