2012-10-08 19:35:54 +00:00
|
|
|
########################################
|
|
|
|
# Handlers for restarting services
|
|
|
|
#
|
|
|
|
|
2013-05-17 15:55:25 +00:00
|
|
|
- name: restart apache
|
2014-03-14 15:30:32 +00:00
|
|
|
command: /usr/local/bin/conditional-restart.sh httpd httpd
|
2013-05-17 15:55:25 +00:00
|
|
|
|
|
|
|
- name: reload apache
|
|
|
|
action: service name=httpd state=reloaded
|
|
|
|
|
2012-10-17 19:54:24 +00:00
|
|
|
- name: restart collectd
|
|
|
|
action: service name=collectd state=restarted
|
|
|
|
|
|
|
|
- name: restart crond
|
|
|
|
action: service name=crond state=restarted
|
|
|
|
|
2014-03-14 15:30:32 +00:00
|
|
|
- name: restart fedmsg-gateway
|
2018-02-20 00:24:11 +00:00
|
|
|
command: /usr/local/bin/conditional-restart.sh fedmsg-gateway
|
2014-03-14 15:30:32 +00:00
|
|
|
|
|
|
|
- name: restart fedmsg-hub
|
2018-02-20 00:24:11 +00:00
|
|
|
command: /usr/local/bin/conditional-restart.sh fedmsg-hub
|
2015-09-02 17:02:54 +00:00
|
|
|
# Note that, we're cool with arbitrary restarts on bodhi-backend02, just
|
2018-01-05 15:33:48 +01:00
|
|
|
# not bodhi-backend01 or bodhi-backend03. 01 and 03 is where the releng/mash
|
2016-08-12 19:36:37 +00:00
|
|
|
# stuff happens and we # don't want to interrupt that.
|
2017-08-09 13:21:22 +02:00
|
|
|
when: inventory_hostname not in ['bodhi-backend01.phx2.fedoraproject.org', 'bodhi-backend03.phx2.fedoraproject.org']
|
2014-03-14 15:30:32 +00:00
|
|
|
|
|
|
|
- name: restart fedmsg-irc
|
2018-02-20 00:24:11 +00:00
|
|
|
command: /usr/local/bin/conditional-restart.sh fedmsg-irc
|
2014-03-14 15:30:32 +00:00
|
|
|
|
|
|
|
- name: restart fedmsg-relay
|
2018-02-20 00:24:11 +00:00
|
|
|
command: /usr/local/bin/conditional-restart.sh fedmsg-relay
|
2014-03-14 15:30:32 +00:00
|
|
|
|
2017-08-27 20:02:56 +00:00
|
|
|
- name: restart koji-sync-listener
|
|
|
|
action: service name=koji-sync-listener state=restarted
|
2017-08-16 18:04:18 +00:00
|
|
|
|
2013-05-17 15:55:25 +00:00
|
|
|
- name: reload httpd
|
2015-11-13 23:49:38 +00:00
|
|
|
command: /usr/local/bin/conditional-reload.sh httpd httpd
|
2013-05-17 15:55:25 +00:00
|
|
|
|
|
|
|
- name: restart iptables
|
|
|
|
action: service name=iptables state=restarted
|
2012-10-17 19:54:24 +00:00
|
|
|
|
2015-02-06 21:20:11 +00:00
|
|
|
- name: restart ip6tables
|
|
|
|
action: service name=ip6tables state=restarted
|
|
|
|
|
2013-06-24 20:01:51 +00:00
|
|
|
- name: restart libvirtd
|
|
|
|
action: service name=libvirtd state=restarted
|
|
|
|
|
2013-05-17 15:55:25 +00:00
|
|
|
- name: restart mailman
|
|
|
|
action: service name=mailman state=restarted
|
2012-10-17 19:54:24 +00:00
|
|
|
|
|
|
|
- name: restart named
|
|
|
|
action: service name=named state=restarted
|
|
|
|
|
2012-10-08 19:35:54 +00:00
|
|
|
- name: restart ntpd
|
|
|
|
action: service name=ntpd state=restarted
|
|
|
|
|
2014-09-24 17:32:29 +00:00
|
|
|
- name: restart openvpn (Fedora)
|
|
|
|
when: ansible_distribution == "Fedora"
|
2017-05-14 21:38:08 +00:00
|
|
|
action: service name=openvpn-client@openvpn state=restarted
|
2015-11-04 23:29:11 +00:00
|
|
|
#notify:
|
|
|
|
#- fix openvpn routing
|
2014-08-01 12:58:11 +02:00
|
|
|
|
2014-09-24 17:32:29 +00:00
|
|
|
- name: restart openvpn (RHEL6)
|
2015-05-27 22:27:39 +00:00
|
|
|
when: ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 6
|
2014-08-01 12:34:34 +02:00
|
|
|
action: service name=openvpn state=restarted
|
2015-11-04 23:29:11 +00:00
|
|
|
#notify:
|
|
|
|
#- fix openvpn routing
|
2014-08-01 12:34:34 +02:00
|
|
|
|
2014-09-24 17:32:29 +00:00
|
|
|
- name: restart openvpn (RHEL7)
|
2015-05-27 22:27:39 +00:00
|
|
|
when: ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 7
|
2017-05-14 21:38:08 +00:00
|
|
|
action: service name=openvpn-client@openvpn state=restarted
|
2015-11-04 23:29:11 +00:00
|
|
|
#notify:
|
|
|
|
#- fix openvpn routing
|
2015-11-04 23:09:43 +00:00
|
|
|
|
|
|
|
- name: fix openvpn routing
|
2015-11-04 23:19:22 +00:00
|
|
|
action: shell /etc/openvpn/fix-routes.sh
|
2014-06-30 21:12:06 +00:00
|
|
|
|
2012-10-17 19:54:24 +00:00
|
|
|
- name: restart xinetd
|
|
|
|
action: service name=xinetd state=restarted
|
2012-10-08 19:35:54 +00:00
|
|
|
|
2013-11-18 20:32:28 +00:00
|
|
|
- name: restart netapproute
|
|
|
|
action: command /etc/sysconfig/network-scripts/ifup-routes eth1
|
2014-02-11 17:25:56 +00:00
|
|
|
|
2014-09-23 08:55:26 +00:00
|
|
|
- name: restart network
|
|
|
|
action: service name=network state=restarted
|
|
|
|
|
2014-03-03 19:51:44 +00:00
|
|
|
- name: rebuild postfix transport
|
|
|
|
command: /usr/sbin/postmap /etc/postfix/transport
|
2014-03-12 21:03:02 +00:00
|
|
|
|
2016-09-27 03:09:23 +00:00
|
|
|
- name: rebuild postfix tls_policy
|
2016-09-27 03:08:25 +00:00
|
|
|
command: /usr/sbin/postmap /etc/postfix/tls_policy
|
|
|
|
|
2016-09-27 16:35:29 +00:00
|
|
|
- name: restart postfix
|
|
|
|
service: name=postfix state=restarted
|
|
|
|
|
2016-12-01 21:36:07 +00:00
|
|
|
- name: reload proxyhttpd
|
|
|
|
command: /usr/local/bin/proxy-conditional-reload.sh httpd httpd
|
|
|
|
|
2014-03-12 21:03:02 +00:00
|
|
|
- name: restart glusterd
|
|
|
|
service: name=glusterd state=restarted
|
2014-03-28 18:36:24 +00:00
|
|
|
|
|
|
|
- name: restart supervisord
|
|
|
|
service: name=supervisord state=restarted
|
2014-06-23 04:09:25 +00:00
|
|
|
|
|
|
|
- name: run rkhunter
|
|
|
|
command: rkhunter --propupd
|
2014-06-24 14:32:06 +00:00
|
|
|
|
|
|
|
- name: restart moksha-hub
|
|
|
|
service: name=moksha-hub state=restarted
|
2014-07-10 22:00:31 +00:00
|
|
|
|
|
|
|
- name: restart dhcpd
|
|
|
|
service: name=dhcpd state=restarted
|
2014-07-14 21:23:23 +00:00
|
|
|
|
|
|
|
- name: restart memcached
|
|
|
|
service: name=memcached state=restarted
|
2014-08-19 15:01:48 +00:00
|
|
|
|
|
|
|
- name: reload systemd
|
2014-08-19 15:07:30 +00:00
|
|
|
command: systemctl daemon-reload
|
2014-09-26 18:23:17 +00:00
|
|
|
|
|
|
|
- name: restart nagios
|
2014-09-27 03:30:41 +00:00
|
|
|
shell: nagios -v /etc/nagios/nagios.cfg && systemctl restart nagios
|
2014-10-08 21:03:20 +00:00
|
|
|
|
|
|
|
- name: restart bridge
|
|
|
|
shell: /usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge
|
2014-11-08 17:07:36 +00:00
|
|
|
|
2015-04-28 17:18:14 +00:00
|
|
|
- name: reload libvirtd
|
|
|
|
service: name=libvirtd state=reloaded
|
2014-11-08 17:07:36 +00:00
|
|
|
ignore_errors: true
|
2015-04-28 17:18:14 +00:00
|
|
|
when: ansible_virtualization_role == 'host'
|
2014-11-17 15:35:29 +00:00
|
|
|
|
2017-01-30 22:07:38 +00:00
|
|
|
- name: restart pagure_ev
|
|
|
|
service: name=pagure_ev state=restarted
|
|
|
|
|
2015-03-11 08:54:58 +00:00
|
|
|
- name: "update ca-trust"
|
|
|
|
command: /usr/bin/update-ca-trust
|
2015-03-11 09:15:10 +00:00
|
|
|
|
2015-03-17 14:15:13 +00:00
|
|
|
- name: restart stunnel
|
|
|
|
service: name=stunnel state=restarted
|
2015-06-15 19:14:55 +00:00
|
|
|
|
2016-06-22 19:27:37 +00:00
|
|
|
- name: restart cinder api
|
2015-06-15 19:14:55 +00:00
|
|
|
service: name=openstack-cinder-api state=restarted
|
2016-06-22 19:27:37 +00:00
|
|
|
|
|
|
|
- name: restart cinder scheduler
|
2015-06-15 19:14:55 +00:00
|
|
|
service: name=openstack-cinder-scheduler state=restarted
|
2016-06-22 19:27:37 +00:00
|
|
|
|
|
|
|
- name: restart cinder volume
|
2015-06-15 19:14:55 +00:00
|
|
|
service: name=openstack-cinder-volume state=restarted
|
2015-09-28 17:41:16 +00:00
|
|
|
|
|
|
|
- name: restart autocloud
|
|
|
|
service: name=autocloud state=restarted
|
2015-10-13 20:15:57 +00:00
|
|
|
|
2015-10-15 17:07:17 +00:00
|
|
|
- name: restart mirrorlist-server
|
|
|
|
service: name=mirrorlist-server state=restarted
|
2016-02-04 03:48:01 +00:00
|
|
|
|
|
|
|
- name: restart NetworkManager
|
|
|
|
service: name=NetworkManager state=restarted
|
|
|
|
|
2016-02-04 20:58:30 +00:00
|
|
|
- name: reload NetworkManager-connections
|
2016-02-04 03:48:01 +00:00
|
|
|
command: nmcli c reload
|
|
|
|
|
2016-07-08 14:20:48 +00:00
|
|
|
- name: restart basset-worker
|
2016-07-08 14:16:20 +00:00
|
|
|
service: name=basset-worker state=restarted
|
|
|
|
|
2016-02-04 03:48:01 +00:00
|
|
|
- name: apply interface-changes
|
|
|
|
command: nmcli con up {{ item.split()[1] }}
|
2016-02-04 22:09:06 +00:00
|
|
|
async: 1
|
|
|
|
poll: 0
|
2016-02-04 03:48:01 +00:00
|
|
|
with_items:
|
|
|
|
- "{{ if_uuid.stdout_lines }}"
|
|
|
|
|
2016-02-10 00:03:09 +00:00
|
|
|
- name: flush journald tmpfiles to persistent store
|
2016-02-11 20:13:32 +00:00
|
|
|
command: pkill -f -USR1 systemd-journald
|
2017-03-06 23:12:51 +00:00
|
|
|
|
|
|
|
- name: restart idmapd
|
|
|
|
service: name=nfs-idmapd state=restarted
|
2017-07-27 15:00:24 +00:00
|
|
|
|
2018-01-05 15:33:48 +01:00
|
|
|
- name: restart buildmaster
|
|
|
|
service: name=buildmaster state=restarted
|