include backend type "kv"
- name: Enable kv2 secret store
hashivault_secret_enable:
name: "kv2"
+ backend: "kv"
options:
version: "2"
register: 'vault_secret_enable'
- name: Enable same secret store again and check it doesn't fail
hashivault_secret_enable:
name: "kv2"
+ backend: "kv"
options:
version: "2"
register: 'vault_secret_enable_twice'
- name: Write a value to the kv2 store
hashivault_write:
secret: '/kv2/name'
- version: "2"
+
data:
value: 'kv2_stuff'
