ansible/playbooks/manual/openqa-restart-workers.yml
Kevin Fenzi af0253afe5 clean up some more openqa_stg vs openqa_lab
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-09-21 15:24:03 -07:00

15 lines
516 B
YAML

- name: restart worker services on openQA worker hosts (production)
hosts: openqa_workers:openqa_lab_workers
user: root
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
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 }}"