Add playbook to run when restart pkgdb after mass-branching
This playbook re-starts pkgdb web UI and tell nagios to un-shush
This commit is contained in:
parent
2e9aa9766f
commit
cc3b237841
1 changed files with 19 additions and 0 deletions
19
playbooks/manual/restart_pkgdb.yml
Normal file
19
playbooks/manual/restart_pkgdb.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
- name: verify the frontend and stop it
|
||||
hosts: pkgdb:pkgdb-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
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
||||
tasks:
|
||||
- name: Start apache
|
||||
service: name="httpd" state=running
|
||||
|
||||
post_tasks:
|
||||
- name: tell nagios to unshush w.r.t. apache
|
||||
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||
delegate_to: noc01.phx2.fedoraproject.org
|
||||
ignore_errors: true
|
Loading…
Add table
Add a link
Reference in a new issue