Skip to content

add a vault_kv2_destroy module #446

Open
@Kloppi313

Description

@Kloppi313
SUMMARY

It is not possible to destroy something in vault.
I think a boolean switch would be great:

Adding something like the parameter destroy: True/False with standard false would do the trick.

The context is the wish to destroy an entire secret with all versions while decomissining a host with its saved secrets.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

vault_kv2_delete

ADDITIONAL INFORMATION
- name: Delete all of the secret/mysecret secret.
  community.hashi_vault.vault_kv2_delete:
    url: https://vault:8201
    path: secret/metadata/mysecret
    auth_method: userpass
    username: user
    password: '{{ passwd }}'
    destroy: True
  register: result

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions