Just about to add a subdomain to an existing trellis setup with a TLQDN. So I adjusted wordpress_sites.yml for development and production:
members.domain.com: site_hosts: - canonical: members.domain.com local_path: ../members # path targeting local Bedrock site directory (relative to Ansible root) repo: email@example.com:jasperf/domain.git # replace with your Git repo URL repo_subtree_path: members # relative path to your Bedrock/WP directory in your repo branch: master multisite: enabled: false ssl: enabled: true provider: letsencrypt cache: enabled: true
as well as the vault files for both environments. I am not using staging.
Now I was wondering. What about the hosts/production file? I now have
# Add each host to the [production] group and to a "type" group such as [web] or [db]. # List each machine only once per [group], even if it will host multiple sites. [production] mysite.com [web] mysite.com
And the new subdomain will be on the same Droplet / ip address. Should I add members.domain.com here for production and web or should I just replace the domain by the ip address maybe?