add exampels

This commit is contained in:
msbolshakov
2022-10-21 20:43:08 +07:00
parent 8f737397de
commit 36d6fe092d
26 changed files with 178 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
---
#
# This playbook create secret "secret" with data foo:foe. If secret "secret" exists - add data foo:foe.
#
- hosts: localhost
tasks:
- hashivault_secret:
url: "https://vault.domain.local"
authtype: ldap
username: "user"
password: "p@ssword"
mount_point: "kv"
state: present
permanent: true
secret: secret
data:
foo: foe