openqa: really fix the worker service loop this time (I hope)

Thanks mackerman on Freenode...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-04-30 15:43:26 -07:00
parent 6566f6ba3f
commit e9c96f5b4d
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
# Restart handler for worker services
- name: Conditionally restart openQA workers
command: /usr/local/bin/conditional-restart.sh openqa-worker@{{ item }}
loop: "{{ range(1, {{ openqa_workers|int }} + 1)|list }}"
loop: "{{ range(1, openqa_workers + 1)|list }}"
listen:
- restart openqa workers

View file

@ -154,4 +154,4 @@
- name: Enable and start worker services
service: name=openqa-worker@{{ item }} enabled=yes state=started
loop: "{{ range(1, {{ openqa_workers|int }} + 1)|list }}"
loop: "{{ range(1, openqa_workers + 1)|list }}"