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
Currently the following fails if the secret already exists but is in deleted (recoverable) state:
- name: Create a secretazure_rm_keyvaultsecret:
secret_name: MySecretsecret_value: My_Pass_Seckeyvault_uri: https://contoso.vault.azure.net/
It would be nice if this state is handled by the Ansible module (either automagically or optionally with an additional parameter recover_if_needed).
ISSUE TYPE
Feature Idea
COMPONENT NAME
azure_rm_keyvaultsecret
ADDITIONAL INFORMATION
In our setup sometimes manual interactions happen with Key Vault. If someone deletes a secret that is set via Ansible, our scripts fail in the next run with KeyVaultErrorException: (Conflict) Secret ... is currently in a deleted but recoverable state.
I am happy to prepare a PR if this is a feature that you'd like to support.
The text was updated successfully, but these errors were encountered:
I still believe the feature is very important and would like to keep the issue open. If anyone else can/wants to pick it up in the meantime, that would be great.
Otherwise I'd give an update once I find time to work on it.
Fred-sun
added a commit
to Fred-sun/ansible_collections_azure
that referenced
this issue
Oct 30, 2023
SUMMARY
Currently the following fails if the secret already exists but is in deleted (recoverable) state:
It would be nice if this state is handled by the Ansible module (either automagically or optionally with an additional parameter
recover_if_needed
).ISSUE TYPE
COMPONENT NAME
azure_rm_keyvaultsecret
ADDITIONAL INFORMATION
In our setup sometimes manual interactions happen with Key Vault. If someone deletes a secret that is set via Ansible, our scripts fail in the next run with
KeyVaultErrorException: (Conflict) Secret ... is currently in a deleted but recoverable state
.I am happy to prepare a PR if this is a feature that you'd like to support.
The text was updated successfully, but these errors were encountered: