You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
657 B

  1. ---
  2. - name: cluster/unseal | Current sealed state
  3. debug: " Sealed? {{vault_is_sealed}}"
  4. - name: cluster/unseal | Unseal Vault
  5. uri:
  6. url: "https://localhost:{{ vault_port }}/v1/sys/unseal"
  7. headers: "{{ vault_headers }}"
  8. method: POST
  9. body_format: json
  10. body:
  11. key: "{{ item }}"
  12. with_items: "{{ vault_unseal_keys|default([]) }}"
  13. when: vault_is_sealed
  14. - name: cluster/unseal | Wait until server is ready
  15. uri:
  16. url: "https://localhost:{{ vault_port }}/v1/sys/health"
  17. headers: "{{ vault_headers }}"
  18. method: HEAD
  19. status_code: 200, 429
  20. register: vault_node_ready
  21. until: vault_node_ready|succeeded
  22. retries: 5