2017-01-13 20:31:10 +00:00
|
|
|
---
|
|
|
|
|
2017-08-18 12:09:45 +00:00
|
|
|
- name: cluster/unseal | Current sealed state
|
2018-05-11 16:11:38 +00:00
|
|
|
debug:
|
|
|
|
msg: "Sealed? {{ vault_is_sealed }}"
|
2017-08-18 12:09:45 +00:00
|
|
|
|
2017-01-13 20:31:10 +00:00
|
|
|
- name: cluster/unseal | Unseal Vault
|
2018-05-11 16:11:38 +00:00
|
|
|
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([]) }}"
|
2018-05-11 16:11:38 +00:00
|
|
|
notify: wait for vault up
|
2017-01-13 20:31:10 +00:00
|
|
|
when: vault_is_sealed
|