Wait until Nomad is running before bootstrapping ACLs

This commit is contained in:
IamTheFij 2022-09-07 11:11:10 -07:00
parent 912ad58ff0
commit a9073aafd4

View File

@ -404,7 +404,18 @@
hosts: nomad_instances
tasks:
# Need to wait until nomad is running
- name: Nomad API reachable?
uri:
url: "http://127.0.0.1:4646/v1/status/leader"
method: GET
status_code: 200
register: nomad_check_result
retries: 6
until: nomad_check_result is succeeded
delay: 10
changed_when: false
run_once: true
- name: Bootstrap ACLs
command:
argv: