Skip to content

Commit

Permalink
start dynflow later
Browse files Browse the repository at this point in the history
this ensures foreman is done migrating the DB when dynflow starts
  • Loading branch information
evgeni committed Nov 4, 2024
1 parent c63813c commit 98f6a41
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions roles/foreman/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@
enabled: true
state: started

- name: Wait for Foreman service to be accessible
ansible.builtin.uri:
url: 'http://{{ ansible_hostname }}:3000/api/v2/ping'
until: foreman_status.status == 200
retries: 60
delay: 5
register: foreman_status

- name: Start the Dynflow Services
ansible.builtin.systemd:
name: "dynflow-sidekiq@{{ item }}"
Expand All @@ -123,14 +131,6 @@
- worker
- worker-hosts-queue

- name: Wait for Foreman service to be accessible
ansible.builtin.uri:
url: 'http://{{ ansible_hostname }}:3000/api/v2/ping'
until: foreman_status.status == 200
retries: 60
delay: 5
register: foreman_status

- name: Wait for Foreman tasks to be ready
ansible.builtin.uri:
url: 'http://{{ ansible_hostname }}:3000/api/v2/ping'
Expand Down

0 comments on commit 98f6a41

Please sign in to comment.