mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-26 03:23:08 +08:00
Add playbook to run when starting mass-branching
This playbook stops pkgdb web UI and tell nagios to shush for 90 minutes it should give us enough time to do the mass-branching correctly
This commit is contained in:
19
playbooks/manual/stop_pkgdb.yml
Normal file
19
playbooks/manual/stop_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"
|
||||
|
||||
pre_tasks:
|
||||
- name: tell nagios to shush w.r.t. apache
|
||||
nagios: action=downtime minutes=90 service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||
delegate_to: noc01.phx2.fedoraproject.org
|
||||
ignore_errors: true
|
||||
|
||||
tasks:
|
||||
- name: Stop apache
|
||||
service: name="httpd" state=stopped
|
||||
Reference in New Issue
Block a user