ansible/playbooks/manual/restart-fedmsg-services.yml
Kevin Fenzi 7984b46eb7 The great phx2 pruning run (1st cut).
Since we no longer have any machines in phx2, I have tried to remove
them from ansible. Note that there are still some places where we need
to remove them still: nagios, dhcp, named were not touched, and in cases
where it wasn't pretty clear what a conditional was doing I left it to
be cleaned up later.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-14 14:14:31 -07:00

94 lines
2.8 KiB
YAML

# Restart fedmsg services
#
# The grande list of "what is running and where" is maintained here manually.
# By running this playbook, you're not actually guaranteed that all services
# everywhere will be restarted. As stuff changes over time, this playbook will
# need to be periodically updated with new things.
- name: restart fedmsg-gateway instances
hosts: fedmsg_gateways:fedmsg_gateways_stg
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: bounce the fedmsg-gateway service
service: name=fedmsg-gateway state=restarted
- name: restart fedmsg-relay instances
hosts: fedmsg_relays:fedmsg_relays_stg
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: bounce the fedmsg-relay service
service: name=fedmsg-relay state=restarted
- name: restart fedmsg-irc instances
hosts: fedmsg_ircs:fedmsg_ircs_stg
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: bounce the fedmsg-irc service
service: name=fedmsg-irc state=restarted
- name: tell nagios to be quiet about FMN for the moment
hosts: notifs_backend:notifs_backend_stg
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: schedule a 25 minute downtime. give notifs backend time to start up.
nagios: action=downtime minutes=25 service=host host={{ inventory_hostname_short }}{{ env_suffix }}
delegate_to: noc01.iad2.fedoraproject.org
ignore_errors: true
# - name: bounce the fmn-digests service
# service: name=fmn-digests@1 state=restarted
- name: restart fedmsg-hub instances
hosts: fedmsg_hubs:fedmsg_hubs_stg
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: bounce the fedmsg-hub service
service: name=fedmsg-hub state=restarted
- name: restart moksha-hub instances
hosts: moksha_hubs:moksha_hubs_stg
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: bounce the moksha-hub service
service: name=moksha-hub state=restarted