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

Syntax issue with vault.yml #5

Open
jupo42 opened this issue Aug 3, 2019 · 1 comment
Open

Syntax issue with vault.yml #5

jupo42 opened this issue Aug 3, 2019 · 1 comment

Comments

@jupo42
Copy link

jupo42 commented Aug 3, 2019

When trying to execute the ansible-playbook -i inventory.yml bootstrap.yml --vault-password-file ~/.vault_pass.txt I get the following error:

ERROR! Syntax Error while loading YAML.
  did not find expected '-' indicator

The error appears to have been in '/home/vagrant/irix_ansible/group_vars/default/vault.yml': line 2, column 1, but may
be elsewhere in the file depending on the exact syntax problem.

The vault.yml was created exactly as noted in the readme:

- - -
su_password: rootpasswordhere

and encrypted with the ansible-encrypt command.

I worked around it by removing all references to the vault and manually entering the password in each of the root .yml files.

This is using Ansible 2.7.6, python 2.7.9, inside the booterizer vm.

@jupo42
Copy link
Author

jupo42 commented Aug 3, 2019

Looks like the issue is a bad copy of the --- vs - - - on the first line. I would like to suggest the example vault.yml in the master branch be the unencrypted file that end users just need to edit instead of having to delete / recreate.

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