c12s-kubespray/roles/vault/tasks/cluster/unseal.yml

17 lines
429 B
YAML
Raw Normal View History

2017-01-13 20:31:10 +00:00
---
- name: cluster/unseal | Current sealed state
debug:
msg: "Sealed? {{ vault_is_sealed }}"
2017-01-13 20:31:10 +00:00
- name: cluster/unseal | Unseal Vault
hashivault_unseal:
url: "https://localhost:{{ vault_port }}/"
token: "{{ vault_root_token }}"
ca_cert: "{{ vault_cert_dir }}/ca.pem"
keys: "{{ item }}"
no_log: true
2017-01-13 20:31:10 +00:00
with_items: "{{ vault_unseal_keys|default([]) }}"
notify: wait for vault up
2017-01-13 20:31:10 +00:00
when: vault_is_sealed