Vault kasutamine
Allikas: Imre kasutab arvutit
Mine navigeerimisribaleMine otsikasti
Sissejuhatus
TODO
Ansible kasutamine
# cat hw.yml --- - name: Hello World! hosts: all tasks: - name: Hello World! shell: echo "Hi! Tower is working." - name: imre test debug: msg: "{{ lookup('hashi_vault', 'secret=secret/data/my-secret-password-imre token=dev-only-token url=http://192.168.110.221:8200')}}" # cat hosts [dockerhost] 192.168.110.221 # ansible-playbook hw.yml PLAY [Hello World!] **************************************************************************** TASK [Gathering Facts] **************************************************************************** TASK [Hello World!] **************************************************************************** changed: [192.168.110.221] TASK [imre test] **************************************************************************** ok: [192.168.110.221] => { "msg": { "password": "parool" } } PLAY RECAP **************************************************************************** 192.168.110.221 : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0