include backend "kv" and remove options version" 2" on disable plays
- name: Make sure kv2 secret store is disabled
hashivault_secret_disable:
name: "kv2"
+ backend: "kv"
failed_when: False
- name: Enable kv2 secret store
hashivault_secret_enable:
- name: Disable kv2 secret store
hashivault_secret_disable:
name: "kv2"
- version: "2"
+ backend: "kv"
register: 'vault_secret_disable'
- assert: { that: "{{vault_secret_enable.changed}} == True" }
- assert: { that: "{{vault_secret_enable.rc}} == 0" }
