You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some variables that should be visible to all groups and be encrypted, following tips about variable visibility, I placed auxiliary variables like my_variable: "{{ vault_my_variable }}" in group_vars/all and loaded a vault with vars_files in the playbook. It works, but the linter fails with error "Attempting to decrypt but no vault secrets found".
Issue Type
Bug Report
OS / ENVIRONMENT
ansible-lint 24 using ansible-core:2.16.12 ansible-compat:24.9.0 ruamel-yaml:0.18.6 ruamel-yaml-clib:0.2.12
If I try to run the playbook with ansible-playbook -i inventory.yaml --vault-id @prompt playbook.yaml it works, so I would expect the linter not to fail as the variables are defined. If this is not the correct solution on variable management please let me know
Actual Behavior
$ ansible-lint playbook.yamlWARNING Listing 1 violation(s) that are fatalinternal-error: Unexpected error code 1 from execution of: ansible-playbook -i localhost, --syntax-check playbook.yamlplaybook.yaml:1 ERROR! Attempting to decrypt but no vault secrets foundRead documentation for instructions on how to ignore specific rule violations. Rule Violation Summary count tag profile rule associated tags 1 internal-error min core
The text was updated successfully, but these errors were encountered:
Summary
I have some variables that should be visible to all groups and be encrypted, following tips about variable visibility, I placed auxiliary variables like
my_variable: "{{ vault_my_variable }}"
ingroup_vars/all
and loaded a vault withvars_files
in the playbook. It works, but the linter fails with error "Attempting to decrypt but no vault secrets found".Issue Type
OS / ENVIRONMENT
ansible-lint 24 using ansible-core:2.16.12 ansible-compat:24.9.0 ruamel-yaml:0.18.6 ruamel-yaml-clib:0.2.12
STEPS TO REPRODUCE
Minimal reproducible example
group_vars/all
group_vars/all_vault.yml
roles/ssh/tasks/main.yaml
playbook.yaml
Desired Behavior
If I try to run the playbook with
ansible-playbook -i inventory.yaml --vault-id @prompt playbook.yaml
it works, so I would expect the linter not to fail as the variables are defined. If this is not the correct solution on variable management please let me knowActual Behavior
The text was updated successfully, but these errors were encountered: