Reorganize restarts based on feedback from dgilmore.
This commit is contained in:
parent
2c0e8e5d3f
commit
657036d6c3
1 changed files with 14 additions and 22 deletions
|
@ -73,28 +73,7 @@
|
||||||
yum: name=koji state=absent
|
yum: name=koji state=absent
|
||||||
when: db_upgrade_file is defined
|
when: db_upgrade_file is defined
|
||||||
|
|
||||||
- name: update the hubs and the builders
|
- name: update and restart the koji hubs before we touch the builders
|
||||||
hosts: koji:koji-stg:builders:builders-stg
|
|
||||||
user: root
|
|
||||||
vars_files:
|
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
|
||||||
- "/srv/private/ansible/vars.yml"
|
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
||||||
tasks:
|
|
||||||
- yum: package=koji state=latest
|
|
||||||
|
|
||||||
- name: restart the koji builders
|
|
||||||
hosts: koji:koji-stg:builders:builders-stg
|
|
||||||
user: root
|
|
||||||
vars_files:
|
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
|
||||||
- "/srv/private/ansible/vars.yml"
|
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
||||||
tasks:
|
|
||||||
- name: restart all the builders. so many.
|
|
||||||
service: name="kojid" state=restarted
|
|
||||||
|
|
||||||
- name: restart the koji hubs
|
|
||||||
hosts: koji:koji-stg
|
hosts: koji:koji-stg
|
||||||
user: root
|
user: root
|
||||||
vars_files:
|
vars_files:
|
||||||
|
@ -102,9 +81,22 @@
|
||||||
- "/srv/private/ansible/vars.yml"
|
- "/srv/private/ansible/vars.yml"
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
tasks:
|
tasks:
|
||||||
|
- yum: package=koji state=latest
|
||||||
- name: restart httpd on the koji-hubs.
|
- name: restart httpd on the koji-hubs.
|
||||||
service: name="httpd" state=started
|
service: name="httpd" state=started
|
||||||
- name: unsilence nagios
|
- name: unsilence nagios
|
||||||
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||||
delegate_to: noc01.phx2.fedoraproject.org
|
delegate_to: noc01.phx2.fedoraproject.org
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: update and restart the koji builders, now that we're done with the hubs
|
||||||
|
hosts: builders:builders-stg
|
||||||
|
user: root
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
tasks:
|
||||||
|
- yum: package=koji state=latest
|
||||||
|
- name: restart all the builders. so many.
|
||||||
|
service: name="kojid" state=restarted
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue