Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document need for user to create directory ansible/output/vault. #22

Open
mikej888 opened this issue Sep 26, 2023 · 0 comments
Open

Document need for user to create directory ansible/output/vault. #22

mikej888 opened this issue Sep 26, 2023 · 0 comments

Comments

@mikej888
Copy link
Collaborator

Running playbook monolithic_mk8s_example/1-vm-setup-and-deploy.yaml failed at:

$ ansible-playbook -i vmware-host.yaml 1-vm-setup-and-deploy.yaml
...
TASK [dare.common.vault_init_config : save the vault root token and unseal keys to a file] **********
fatal: [single_host -> localhost]: FAILED! => {"changed": false, "checksum": "70374248fd7129088fef42b8f568443f6dce3a48", "msg": "Destination directory /home/mjj/DARE-SeRP-Dev-Deployment/ansible/output/vault does not exist"}

The failure occurs within: ~/.ansible/collections/ansible_collections/dare/common/roles/vault_init_config/tasks/init.yml at:

- name: save the vault root token and unseal keys to a file
  local_action: copy content="{{ vault_init }}" dest={{ vault_config_output_folder }}/root-unseal.json

A fix is to create the missing directory manually on the control VM:

$ cd DARE-SeRP-Dev-Deployment/ansible
$ mkdir -p output/vault

Alternatively, if possible, have the task create the directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant