diff --git a/playbooks/manual/openqa-restart-staging-workers.yml b/playbooks/manual/openqa-restart-staging-workers.yml new file mode 100644 index 0000000000..bf205cf6e0 --- /dev/null +++ b/playbooks/manual/openqa-restart-staging-workers.yml @@ -0,0 +1,15 @@ +- name: restart worker services on openQA worker hosts (production) + hosts: openqa-stg-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 }}" + diff --git a/playbooks/manual/openqa-restart-workers.yml b/playbooks/manual/openqa-restart-workers.yml new file mode 100644 index 0000000000..047a37690e --- /dev/null +++ b/playbooks/manual/openqa-restart-workers.yml @@ -0,0 +1,15 @@ +- name: restart worker services on openQA worker hosts (production) + hosts: openqa-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 }}" +