diff --git a/Vagrantfile b/Vagrantfile index cc2bebf..06a9bcc 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -9,7 +9,8 @@ Vagrant.configure("2") do |config| override.vm.hostname = "quadlet.example.com" override.vm.provider "libvirt" do |libvirt, provider| - libvirt.memory = "4096" + libvirt.memory = 10240 + libvirt.cpus = 4 provider.vm.box_url = CENTOS_9_BOX_URL end end diff --git a/roles/foreman/tasks/main.yaml b/roles/foreman/tasks/main.yaml index c713407..562924d 100644 --- a/roles/foreman/tasks/main.yaml +++ b/roles/foreman/tasks/main.yaml @@ -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 }}" @@ -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'