Grega Bremec 2 hónapja
szülő
commit
7132b45e34
5 módosított fájl, 28 hozzáadás és 0 törlés
  1. 14 0
      load-from-vault.yml
  2. 1 0
      masterkey
  3. 1 0
      masterkey2
  4. 6 0
      secretstore.yml
  5. 6 0
      topsecretstore.yml

+ 14 - 0
load-from-vault.yml

@@ -0,0 +1,14 @@
+---
+- name: display variables foo and bar
+  vars_files:
+    - secretstore.yml
+    - topsecretstore.yml
+  hosts: localhost
+  gather_facts: no
+  tasks:
+    - name: show what foo is set to
+      debug: var=foo
+
+    - name: show what bar is set to
+      debug: var=bar
+

+ 1 - 0
masterkey

@@ -0,0 +1 @@
+abcdefg

+ 1 - 0
masterkey2

@@ -0,0 +1 @@
+qwerty

+ 6 - 0
secretstore.yml

@@ -0,0 +1,6 @@
+$ANSIBLE_VAULT;1.2;AES256;secretstore
+35666333323332663364653732393932303961663661343165356230333334643634313465613564
+3265646530313462333135383463323334386537353939370a373365633263363061626535653131
+64653666663663633532303465346132353933316334663437366532633932343933613134643635
+3135323865353032340a656463383965303230346165386130373564613764616439326230356166
+6139

+ 6 - 0
topsecretstore.yml

@@ -0,0 +1,6 @@
+$ANSIBLE_VAULT;1.2;AES256;topsecretstore
+33316237393464396365633862326238373734623266386266316530393139386232366536343361
+3761326163326538613564313330623137306134323739350a306136663937313635653831336634
+30363935366263323965386363356334633434646632613238666366313236346561366237363532
+3937366533633835630a326534343463643232616637353966633131313836623831616262316332
+3135