Improve first run cluster setup

This commit is contained in:
IamTheFij 2022-09-27 21:28:02 -07:00
parent bfa8633fcf
commit 3e89a101bf
1 changed files with 11 additions and 5 deletions

View File

@ -360,6 +360,9 @@
- "traefik.consulcatalog.connect=true"
- "traefik.http.routers.nomadclient.entrypoints=websecure"
- name: Bootstrap Nomad ACLs and scheduler
hosts: nomad_instances
tasks:
- name: Start Nomad
systemd:
@ -378,11 +381,6 @@
changed_when: false
run_once: true
- name: Bootstrap Nomad ACLs and scheduler
hosts: nomad_instances
tasks:
- name: Bootstrap ACLs
command:
argv:
@ -475,3 +473,11 @@
nomad_secret_id: "{{ read_secretid.stdout }}"
delegate_to: localhost
run_once: true
notify:
- Restart Nomad
handlers:
- name: Restart Nomad
systemd:
state: restarted
name: nomad