Improve first run cluster setup
This commit is contained in:
parent
bfa8633fcf
commit
3e89a101bf
@ -360,6 +360,9 @@
|
|||||||
- "traefik.consulcatalog.connect=true"
|
- "traefik.consulcatalog.connect=true"
|
||||||
- "traefik.http.routers.nomadclient.entrypoints=websecure"
|
- "traefik.http.routers.nomadclient.entrypoints=websecure"
|
||||||
|
|
||||||
|
- name: Bootstrap Nomad ACLs and scheduler
|
||||||
|
hosts: nomad_instances
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Start Nomad
|
- name: Start Nomad
|
||||||
systemd:
|
systemd:
|
||||||
@ -378,11 +381,6 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
|
|
||||||
- name: Bootstrap Nomad ACLs and scheduler
|
|
||||||
hosts: nomad_instances
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: Bootstrap ACLs
|
- name: Bootstrap ACLs
|
||||||
command:
|
command:
|
||||||
argv:
|
argv:
|
||||||
@ -475,3 +473,11 @@
|
|||||||
nomad_secret_id: "{{ read_secretid.stdout }}"
|
nomad_secret_id: "{{ read_secretid.stdout }}"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
run_once: true
|
run_once: true
|
||||||
|
notify:
|
||||||
|
- Restart Nomad
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- name: Restart Nomad
|
||||||
|
systemd:
|
||||||
|
state: restarted
|
||||||
|
name: nomad
|
||||||
|
Loading…
Reference in New Issue
Block a user