From 217b593cf9198abe5c6cf26d2484708af9ba39af Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Thu, 28 Mar 2024 18:04:27 -0300 Subject: [PATCH] Update playbook.md (#2292) Some additional variables to change when provisioning to a remote environment. --- docs/installation/playbook.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/installation/playbook.md b/docs/installation/playbook.md index 00b63d944..28c2853a5 100644 --- a/docs/installation/playbook.md +++ b/docs/installation/playbook.md @@ -189,6 +189,33 @@ You will have to add the matomo line. matomo_site_url: http://example.org ``` +#### group_vars/webserver/apache.yml + +If you have a domain name, change the default to your domain name. + +```yml + - servername: "myactualddomain.com" +``` + +#### group_vars/webserver/drupal.yml + +If you have a domain name, change the default to your domain name. And set the Drupal site name to whatever you need it to be. + +```yml +drupal_domain: "myactualdomain.com" +drupal_site_name: "Example Sitename" +``` +Also set your domain in `drupal_trusted_hosts`: + +```yml +drupal_trusted_hosts: + - ^localhost$ + - "{{ hostvars[groups['webserver'][0]].ansible_host }}" + - '^myactualdomain\.com$' +``` + +Note the backslash which escapes the period (which would otherwise match any character). Because of this escape character, the string needs to be surrounded by single quotes. + #### hosts You'll need to put particulars for logging into your server in the `inventory/production/hosts` file . This example is set up to login as the `ansible` user (to avoid trying to run Composer as `root`) and uses