Files
decort-ansible/examples/hashivault/hashivault_create_secret.yaml
msbolshakov 36d6fe092d add exampels
2022-10-21 20:43:08 +07:00

18 lines
415 B
YAML

---
#
# 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