Wait until Nomad is running before bootstrapping ACLs
This commit is contained in:
parent
bd1280b970
commit
50bdb61575
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user