From cc3b23784193af1980333a9155a0d45e86358f39 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Thu, 28 Jul 2016 11:42:53 +0200 Subject: [PATCH] Add playbook to run when restart pkgdb after mass-branching This playbook re-starts pkgdb web UI and tell nagios to un-shush --- playbooks/manual/restart_pkgdb.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 playbooks/manual/restart_pkgdb.yml diff --git a/playbooks/manual/restart_pkgdb.yml b/playbooks/manual/restart_pkgdb.yml new file mode 100644 index 0000000000..3852a31267 --- /dev/null +++ b/playbooks/manual/restart_pkgdb.yml @@ -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