mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user