summaryrefslogtreecommitdiff
path: root/examples/vault-sync.yaml
diff options
context:
space:
mode:
authorluisgulo <luisgulo@gmail.com>2025-10-24 18:01:10 +0200
committerluisgulo <luisgulo@gmail.com>2025-10-24 18:01:10 +0200
commit533e79ba959143f0459431a486bfb85c56c72ddc (patch)
tree91974de1bbbdc4c51c76ed591fc5c6e02a3342b6 /examples/vault-sync.yaml
parent45019c81cfd0fc1d18dce18cdfd5f127c6d61073 (diff)
Releasing code version 1.8.0
Diffstat (limited to 'examples/vault-sync.yaml')
-rw-r--r--examples/vault-sync.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/vault-sync.yaml b/examples/vault-sync.yaml
new file mode 100644
index 0000000..6335379
--- /dev/null
+++ b/examples/vault-sync.yaml
@@ -0,0 +1,23 @@
+tasks:
+ - name: Enviar secreto 'api_token' al host remoto
+ module: vault-remote
+ args:
+ action: push
+ key: api_token
+ remote_path: "/etc/shflow/vault"
+ become: true
+
+ - name: Recuperar secreto 'db_password' desde el host remoto
+ module: vault-remote
+ args:
+ action: pull
+ key: db_password
+ remote_path: "/etc/shflow/vault"
+ become: true
+
+ - name: Sincronizar todos los secretos locales al host remoto
+ module: vault-remote
+ args:
+ action: sync
+ remote_path: "/etc/shflow/vault"
+ become: true