From 96ba86eb27184b7909f5986d531b18e82023bd6e Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 5 Jun 2017 13:01:27 +0000 Subject: [PATCH] Add a little playbook for restarting pagure. --- playbooks/manual/restart-pagure.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 playbooks/manual/restart-pagure.yml diff --git a/playbooks/manual/restart-pagure.yml b/playbooks/manual/restart-pagure.yml new file mode 100644 index 0000000000..c0ff518233 --- /dev/null +++ b/playbooks/manual/restart-pagure.yml @@ -0,0 +1,19 @@ +- name: reload the frontend + hosts: pagure:pagure-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_path }}/restart_services.yml" + + tasks: + - name: Reload apache... + service: name="httpd" state=reloaded + + 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