Skip to content
Snippets Groups Projects
Unverified Commit 77c910c1 authored by Matthew Mosesohn's avatar Matthew Mosesohn Committed by GitHub
Browse files

Fixup vault etcd check (#2938)

* Fixup vault etcd

* Update main.yml
parent c20196f9
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- name: check_etcd | Check if etcd is up and reachable - name: check_etcd | Check if etcd is up and reachable
uri: uri:
url: "{{ vault_etcd_url }}/health" url: "{{ vault_etcd_url.split(',') | first }}/health"
validate_certs: no validate_certs: no
client_cert: "{{ etcd_cert_dir }}/node-{{ inventory_hostname }}.pem" client_cert: "{{ etcd_cert_dir }}/node-{{ inventory_hostname }}.pem"
client_key: "{{ etcd_cert_dir }}/node-{{ inventory_hostname }}-key.pem" client_key: "{{ etcd_cert_dir }}/node-{{ inventory_hostname }}-key.pem"
...@@ -26,5 +26,5 @@ ...@@ -26,5 +26,5 @@
fail: fail:
msg: > msg: >
Unable to start Vault cluster! Etcd is not available at Unable to start Vault cluster! Etcd is not available at
{{ vault_etcd_url }} however it is needed by Vault as a backend. {{ vault_etcd_url.split(',') | first }} however it is needed by Vault as a backend.
when: vault_etcd_needed|d() and not vault_etcd_available when: vault_etcd_needed|d() and not vault_etcd_available
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment