running the instructed git config safe.directory call still has error coming up. Selecting Y to proceed has process fail during pre-indexing everything stage:
The first is the unsafe repository issue. The error is occurring because this part of the deploy is being run by the "ansible" user, and the repository is owned by the "cchq" user.
You can avoid the issue by running that "git config" command as the ansible user ... BUT you will get the same error the next time you run a deploy, because the directory name will have changed.
So you will need to configure the ansible user to trust all Git repositories. Here is how you do that:
$ su - ansible # Use the same password as "Vault password for 'monolith'"
$ git config --global --add safe.directory '*'
(For cluster environments, SSH into the webworker VM(s) and run those commands there.) After that you should no longer get that error.
note that this instance was first deployed in Jan 2022 and so may have an older structure of this config file if any major changes have been made to it since then.
Looking through the /var/mail log it looks like its trying to send an email using a combination of the server hostname and the local domain name which unfortunately are different from the Office 365 SMTP server login details.
Would failure to send this email cause a failure to deploy? The deploy process currently fails after it fails to send an email about preindexing still running to the email address.