19 lines
615 B
YAML
19 lines
615 B
YAML
- 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:
|
|
- import_tasks: "{{ handlers_path }}/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
|