ansible/playbooks/manual/openqa-restart-workers.yml
Ryan Lerch 691adee6ee Fix name[casing] ansible-lint issues
fix 1900 failures of the following case issue:

`name[casing]: All names should start with an uppercase letter.`

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-14 20:20:07 +10:00

15 lines
522 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 }}"