Closed ronaveva closed 1 week ago
When the master password is configured at ansible.cfg level, the command to encrypt fails due to ansible not supporting the "--vault-id" parameter.
Fix: Instead of using "--vault-id" it will now use "--encrypt-vault-id" and provide the env var "ANSIBLE_VAULT_IDENTITY_LIST" to provide the vault id as shown in the docs https://docs.ansible.com/ansible/latest/reference_appendices/config.html#envvar-ANSIBLE_VAULT_IDENTITY_LIST
Also whenever the encrypt command fails it will propagate the exception
When the master password is configured at ansible.cfg level, the command to encrypt fails due to ansible not supporting the "--vault-id" parameter.
Fix: Instead of using "--vault-id" it will now use "--encrypt-vault-id" and provide the env var "ANSIBLE_VAULT_IDENTITY_LIST" to provide the vault id as shown in the docs https://docs.ansible.com/ansible/latest/reference_appendices/config.html#envvar-ANSIBLE_VAULT_IDENTITY_LIST
Also whenever the encrypt command fails it will propagate the exception