Let's just have one of those playbooks...
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
ab7d81f822
commit
5af3c19681
2 changed files with 1 additions and 16 deletions
|
@ -1,15 +0,0 @@
|
||||||
- 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 }}"
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- name: restart worker services on openQA worker hosts (production)
|
- name: restart worker services on openQA worker hosts (production)
|
||||||
hosts: openqa-workers
|
hosts: openqa-workers:openqa-stg-workers
|
||||||
user: root
|
user: root
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue