-
Notifications
You must be signed in to change notification settings - Fork 660
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
load-failure on vault files #1442
Comments
Have you tried defining The reality is that ansible-playbook --syntax-check gives an error like below, which means it cannot load the file.
For sure this counts as a valid bug, mainly because it fails to report it as a specific error about the vaults. Users should be allowed to ignore vault loading issues, as they may consider unsafe to enable the vaults where the linter runs. |
I have defined it in So if |
The linter will not load anything related to molecule, you must expose that to the environment where you run it. I am not even sure how to do this for github actions because the variable itself is not the secret. For sure it would work with |
Yes, I'm aware that this is not related to I have encrypted the vault with a simple password written in a file to test molecule, it does not matter, but for sure I would rather skip vault when I run |
Summary
ansible-lint (https://github.com/ansible-community/ansible-lint/releases/tag/v5.0.3rc1) tries to lint vault files and cannot parse them, therefore it fails with this error:
More details can be seen on this CI run:
https://github.com/aminvakil/ansible-role-mysql_add_user/runs/2050941514?check_suite_focus=true
Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
GH Actions using ubuntu-latest (currently ubuntu-20.04)
STEPS TO REPRODUCE
Desired Behaviour
Skip vault files
Actual Behaviour
The text was updated successfully, but these errors were encountered: