Added kv2 secret engine options
@@ -112,6 +112,18 @@ By default, the hashivault_write, hashivault_read and the lookup plugin assume t
- set_fact:
book: "{{lookup('hashivault', 'stuart', 'last', mount_point='/stories')}}"
+Version 2 of KV secret engine is also supported, just add `version: 2` to the task configuration or lookup options, e.g.
+
+ ---
+ - hashivault_read:
+ mount_point: /stories
+ version: 2
+ secret: stuart
+ key: last
+ - set_fact:
+ book: "{{lookup('hashivault', 'stuart', 'last', mount_point='/stories', version=2)}}"
+
+
Initialization, Seal, and Unseal
--------------------------------
