From a0829258e3297c443cdee27ed467b9622c1ada5f Mon Sep 17 00:00:00 2001 From: Al Bowles Date: Thu, 2 Sep 2021 09:53:52 -0500 Subject: [PATCH] Worker start task now honors the openqa_worker_count parameter --- ansible/playbooks/tasks/openqa.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ansible/playbooks/tasks/openqa.yml b/ansible/playbooks/tasks/openqa.yml index 46ce7d9..8fc48e7 100644 --- a/ansible/playbooks/tasks/openqa.yml +++ b/ansible/playbooks/tasks/openqa.yml @@ -141,11 +141,14 @@ args: chdir: "{{ openqa_homedir }}/share/factory/iso/fixed" -- name: Start OpenQA worker +- name: Start {{ openqa_worker_count }} OpenQA workers ansible.builtin.systemd: - name: "openqa-worker@1" + name: "openqa-worker@{{ item }}" state: started enabled: true + # range 'end' parameter is exclusive, so add 1 + loop: "{{ range(1, (openqa_worker_count|int + 1)) | list }}" + tags: start_workers - name: POST a job command: |