ansible/playbooks/manual/restart-pagure.yml

23 lines
642 B
YAML
Raw Normal View History

---
- 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:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
tasks:
- debug: msg="Karate Chop!"
2017-06-19 20:52:28 +00:00
- 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.iad2.fedoraproject.org
ignore_errors: true