mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-11-24 14:11:26 +00:00
Worker start task now honors the openqa_worker_count parameter
This commit is contained in:
parent
2891c562c8
commit
a0829258e3
@ -141,11 +141,14 @@
|
|||||||
args:
|
args:
|
||||||
chdir: "{{ openqa_homedir }}/share/factory/iso/fixed"
|
chdir: "{{ openqa_homedir }}/share/factory/iso/fixed"
|
||||||
|
|
||||||
- name: Start OpenQA worker
|
- name: Start {{ openqa_worker_count }} OpenQA workers
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: "openqa-worker@1"
|
name: "openqa-worker@{{ item }}"
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
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
|
- name: POST a job
|
||||||
command: |
|
command: |
|
||||||
|
Loading…
Reference in New Issue
Block a user