Try limiting hosts in koschei upgrade playbooks
This commit is contained in:
parent
25e5f2b22f
commit
54efcb90fd
2 changed files with 11 additions and 9 deletions
|
@ -7,3 +7,5 @@
|
|||
epel_repos:
|
||||
- epel-testing
|
||||
- msimacek-koschei
|
||||
koschei_backend_hosts: koschei-backend-stg
|
||||
koschei_web_hosts: koschei-web-stg
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- name: verify koschei frontend
|
||||
hosts: koschei-web:koschei-web-stg
|
||||
hosts: "{{ koschei_web_hosts | default('koschei-web') }}"
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- /srv/private/ansible/vars.yml
|
||||
|
@ -11,7 +11,7 @@
|
|||
- koschei/frontend
|
||||
|
||||
- name: verify koschei backend
|
||||
hosts: koschei-backend:koschei-backend-stg
|
||||
hosts: "{{ koschei_backend_hosts | default('koschei-backend') }}"
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- /srv/private/ansible/vars.yml
|
||||
|
@ -22,7 +22,7 @@
|
|||
- koschei/backend
|
||||
|
||||
- name: upgrade koschei backend
|
||||
hosts: koschei-backend:koschei-backend-stg
|
||||
hosts: "{{ koschei_backend_hosts | default('koschei-backend') }}"
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- /srv/private/ansible/vars.yml
|
||||
|
@ -60,7 +60,7 @@
|
|||
- koschei-backend-fedora
|
||||
|
||||
- name: upgrade koschei frontend
|
||||
hosts: koschei-web:koschei-web-stg
|
||||
hosts: "{{ koschei_web_hosts | default('koschei-web') }}"
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- /srv/private/ansible/vars.yml
|
||||
|
@ -92,7 +92,7 @@
|
|||
- koschei-frontend-fedora
|
||||
|
||||
- name: run DB migration
|
||||
hosts: koschei-backend:koschei-backend-stg
|
||||
hosts: "{{ koschei_backend_hosts | default('koschei-backend') }}"
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- /srv/private/ansible/vars.yml
|
||||
|
@ -104,7 +104,7 @@
|
|||
command: alembic -c /usr/share/koschei/alembic.ini upgrade head
|
||||
|
||||
- name: restart koschei frontend
|
||||
hosts: koschei-web:koschei-web-stg
|
||||
hosts: "{{ koschei_web_hosts | default('koschei-web') }}"
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- /srv/private/ansible/vars.yml
|
||||
|
@ -116,7 +116,7 @@
|
|||
- koschei/frontend
|
||||
|
||||
- name: restart koschei backend
|
||||
hosts: koschei-backend:koschei-backend-stg
|
||||
hosts: "{{ koschei_backend_hosts | default('koschei-backend') }}"
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- /srv/private/ansible/vars.yml
|
||||
|
@ -127,13 +127,13 @@
|
|||
- koschei/backend
|
||||
|
||||
- name: Check whether backend update happened
|
||||
hosts: koschei-backend:koschei-backend-stg
|
||||
hosts: "{{ koschei_backend_hosts | default('koschei-backend') }}"
|
||||
tasks:
|
||||
- assert:
|
||||
that: backend_upgrade.changed
|
||||
|
||||
- name: Check whether frontend update happened
|
||||
hosts: koschei-web:koschei-web-stg
|
||||
hosts: "{{ koschei_web_hosts | default('koschei-web') }}"
|
||||
tasks:
|
||||
- assert:
|
||||
that: frontend_upgrade.changed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue