Closed mikej888 closed 1 year ago
Hi @mikej888
If you're re-running the playbook on a vault that's already initialised and when you already have the root token, you should set the following variables in your playbook:
vault_unseal_required: false
vault_root_token: <put your vault root token from the json file here>
Issue encountered while running DARE-SeRP-Dev-Deployment Version: 43f688f (Thu Sep 14 17:15:42 2023 +0100)
main
branch.Running
monolithic_mk8s_example/1-vm-setup-and-deploy.yaml
failed at:The failure occurs within:
~/.ansible/collections/ansible_collections/dare/common/roles/vault_init_config/tasks/init.yml
(fileansble/roles/vault_init_config/tasks/init.yml
in this repository):Is there a way to check if the Vault has been initialised and, if so, to retrieve the root token again? It could be retrived from the
root-unseal.json
file on the control VM via a task like the following (which could be made conditional on if the Vault has already been initialised):