Replies: 4 comments
-
I agree it would be nice if the |
Beta Was this translation helpful? Give feedback.
-
I agree.
|
Beta Was this translation helpful? Give feedback.
-
may I ask why the vault needs to be decrypted for mere linting in the first place? |
Beta Was this translation helpful? Give feedback.
-
Adding the This is a workaround:
Under the hood Workaround for
Or using a |
Beta Was this translation helpful? Give feedback.
-
In #115 (Lint vault files) the resolution seems to be that Ansible must be configured to automatically decrypt vaults for
ansible-lint
to work on playbooks that have a vault.The problem is that I don't have the password in any file that Ansible would (or should) be able to decrypt automatically. I use
ansible-playbook --ask-vault-password
and have a password manager provide it when asked. If I try to lint a playbook that has a vault, I get:If I run the syntax check manually with
ansible-playbook --ask-vault-password --syntax-check playbook.yaml
, it asks me for the password and then checks the syntax as expected.It looks like I cannot do the same with
ansible-lint --ask-vault-password playbook.yaml
. Can this feature please be added for parity?Beta Was this translation helpful? Give feedback.
All reactions