4.3.5 Provisioning servers
Now that your Github environments are set up you can proceed to provision your servers using our automated "Ansible" powered actions.
The Provision environment action will automate a number of tasks on your servers. The individual tasks that Ansible runs are explained in this list. It is very helpful for you to understand what Ansible is doing on your servers so please refer to the list.
IMPORTANT SERVER ACCESS NOTE: As a security step, the Ansible script will disable root SSH access to your server and all password access for SSH users. SSH key authentication is enforced using the public keys for the users in your inventory files. Additionally. SSH users will be required to install Google Authenticator and use a 2FA code to access. SSH access procedures to a server after Provisioning completes is explained here.
Provision the QA server
Click on the "Actions" tab in Github and select the "Provision environment" action. Click the "Run workflow" button.

In the "Machine to provision" select, choose "QA".
In the "Select group tag you want to execute" select, choose "all".
Click the green "Run workflow" button to commence the provisioning of this server.
The process can take anything up to around 20-30 minutes to complete.

If you see a red cross, it means that a certain step failed and requires to be debugged. There might be a problem with your Ansible inventory files, your Github environment secrets, or there may be network connectivity issues between Github, your VPN and your servers that require your attention.

If the server provisioning works, you will eventually see a green tick to mark that the server provisioned successfully.
Provision the backup server
Repeat the process for the Backup server, but this time in the "Machine to provision" select, choose "Backup".
Provision the staging server
Repeat the process for the Staging server, but this time in the "Machine to provision" select, choose "Staging".
Finally, provision the production server
Repeat the process for the Production server, but this time in the "Machine to provision" select, choose "Production".
Ansible tasks explained
In the "Select group tag you want to execute" select, when you choose "all", you are instructing Ansible to run every one of the infrastructure task commands listed in the infrastructure/server-setup/tasks directory and explained in this list.
It is possible for you to choose to run any one of these tasks individually at any time, such as an example given when refreshing static TLS certificates.