openqa/worker: try and fix the service restart handler

It's failing and I don't see why, since I based this right on the
ansible docs. Maybe a |int will help?

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-04-30 14:59:27 -07:00
parent 51d5016747
commit c1b38b5ced

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 }} + 1)|list }}"
loop: "{{ range(1, {{ openqa_workers|int }} + 1)|list }}"
listen:
- restart openqa workers