2024-11-25 18:24:56 +10:00
|
|
|
---
|
2018-07-24 12:43:44 -07:00
|
|
|
- name: restart worker services on openQA worker hosts (production)
|
2020-09-21 15:24:03 -07:00
|
|
|
hosts: openqa_workers:openqa_lab_workers
|
2018-07-24 12:43:44 -07:00
|
|
|
user: root
|
|
|
|
vars_files:
|
2024-11-25 18:24:56 +10:00
|
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
|
|
- "/srv/private/ansible/vars.yml"
|
|
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
2018-07-24 12:43:44 -07:00
|
|
|
handlers:
|
|
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: restart all the worker services
|
|
|
|
service: name=openqa-worker@{{ item }} state=restarted
|
|
|
|
with_sequence: "count={{ openqa_workers }}"
|