Add convenience playbooks for restarting openQA worker services
This is something I have to do every so often and it's an awful pain doing it by hand these days given how many boxes there are, so this seems smarter... Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
f85fd05234
commit
ab7d81f822
2 changed files with 30 additions and 0 deletions
15
playbooks/manual/openqa-restart-staging-workers.yml
Normal file
15
playbooks/manual/openqa-restart-staging-workers.yml
Normal file
|
@ -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 }}"
|
||||
|
15
playbooks/manual/openqa-restart-workers.yml
Normal file
15
playbooks/manual/openqa-restart-workers.yml
Normal file
|
@ -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 }}"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue