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.

22 lines
570 B

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