From 12b8b089ba62223c4851e15bfd4c61ad3ed9da58 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 26 Nov 2019 10:06:58 +0000 Subject: [PATCH] Store Vault password in a file This is fine as it's just an example project. --- docs/installation.md | 6 ++++-- tools/ansible/vault-password.txt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 tools/ansible/vault-password.txt diff --git a/docs/installation.md b/docs/installation.md index 5f14489..2b5f031 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -6,10 +6,12 @@ ![A browser showing a 'Not Found' error](images/before-deploy.png) -1. Run the deploy playbook to deploy the application code to the virtual machine. You will be prompted for the Vault password, which is `dransible`. +1. Run the deploy playbook to deploy the application code to the virtual machine. The Vault password, which is `dransible`, is stored in `tools/ansible/vault-password.txt` as this is an example project. ``` - ansible-playbook tools/ansible/deploy.yml -i tools/ansible/hosts.yml --ask-vault-pass + ansible-playbook tools/ansible/deploy.yml \ + -i tools/ansible/hosts.yml \ + --vault-password-file=tools/ansible/vault-password.txt ``` 1. Load `http://dransible` in a browser, and you should see a Drupal 8 website. diff --git a/tools/ansible/vault-password.txt b/tools/ansible/vault-password.txt new file mode 100644 index 0000000..59a4e88 --- /dev/null +++ b/tools/ansible/vault-password.txt @@ -0,0 +1 @@ +dransible