To deploy a second site

I’m guessing you are trying to host the two domains on a single DO droplet. If you’re actually trying to host the domains on separate droplets, disregard this entire reply.

The hosts/production file should have only one entry per droplet (i.e., per VPS). When your droplet will have multiple sites/domains, you must use a single generic entry for the droplet in your hosts/production file. The simplest is to use the droplet IP.

[web]
your.server.ip.here

[production:children]
web

After making that change, you will need to run server.yml. The playbook will connect to that single IP and loop over the sites listed in wordpress_sites, setting up WordPress for each site. Then the server will be ready for you to deploy the new site using deploy.yml.

2 Likes