2012-10-08 19:35:54 +00:00
|
|
|
########################################
|
|
|
|
# Handlers for restarting services
|
|
|
|
#
|
|
|
|
|
2012-10-17 19:54:24 +00:00
|
|
|
- name: restart auditd
|
|
|
|
action: service name=auditd state=restarted
|
|
|
|
|
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
|
|
|
|
command: /usr/local/bin/conditional-restart.sh fedmsg-gateway fedmsg-gateway
|
|
|
|
|
|
|
|
- name: restart fedmsg-hub
|
|
|
|
command: /usr/local/bin/conditional-restart.sh fedmsg-hub fedmsg-hub
|
2015-09-02 17:02:54 +00:00
|
|
|
# Note that, we're cool with arbitrary restarts on bodhi-backend02, just
|
|
|
|
# not bodhi-backend01. 01 is where the releng/mash stuff happens and we
|
|
|
|
# don't want to interrupt that.
|
2015-08-27 19:43:57 +00:00
|
|
|
when: inventory_hostname != 'bodhi-backend01.phx2.fedoraproject.org'
|
2014-03-14 15:30:32 +00:00
|
|
|
|
|
|
|
- name: restart fedmsg-irc
|
|
|
|
command: /usr/local/bin/conditional-restart.sh fedmsg-irc fedmsg-irc
|
|
|
|
|
|
|
|
- name: restart fedmsg-relay
|
|
|
|
command: /usr/local/bin/conditional-restart.sh fedmsg-relay fedmsg-relay
|
|
|
|
|
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-05-23 19:57:22 +00:00
|
|
|
- name: restart jenkins
|
|
|
|
action: service name=jenkins state=restarted
|
|
|
|
|
2014-01-25 19:24:19 +00:00
|
|
|
- name: restart kojid
|
|
|
|
action: service name=kojid state=restarted
|
|
|
|
|
2015-04-21 07:51:28 +02:00
|
|
|
- name: restart koschei-polling
|
|
|
|
action: service name=koschei-polling state=restarted
|
|
|
|
|
|
|
|
- name: restart koschei-resolver
|
|
|
|
action: service name=koschei-resolver state=restarted
|
|
|
|
|
|
|
|
- name: restart koschei-scheduler
|
|
|
|
action: service name=koschei-scheduler state=restarted
|
|
|
|
|
|
|
|
- name: restart koschei-watcher
|
|
|
|
action: service name=koschei-watcher state=restarted
|
|
|
|
|
2013-06-24 20:01:51 +00:00
|
|
|
- name: restart libvirtd
|
|
|
|
action: service name=libvirtd state=restarted
|
|
|
|
|
2012-11-02 04:46:35 +00:00
|
|
|
- name: restart lighttpd
|
|
|
|
action: service name=lighttpd 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
|
|
|
|
|
|
|
|
- name: restart nfs
|
|
|
|
action: service name=nfs state=restarted
|
|
|
|
|
|
|
|
- name: restart nfslock
|
|
|
|
action: service name=nfslock 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"
|
|
|
|
action: service name=openvpn@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
|
2014-06-30 21:12:06 +00:00
|
|
|
action: service name=openvpn@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 postfix
|
|
|
|
action: service name=postfix state=restarted
|
|
|
|
|
|
|
|
- name: restart rpcbind
|
|
|
|
action: service name=rpcbind state=restarted
|
|
|
|
|
|
|
|
- name: restart rpcidmapd
|
|
|
|
action: service name=rpcidmapd state=restarted
|
|
|
|
|
|
|
|
- name: restart rsyslog
|
|
|
|
action: service name=rsyslog state=restarted
|
|
|
|
|
2012-10-08 19:35:54 +00:00
|
|
|
- name: restart sshd
|
|
|
|
action: service name=sshd state=restarted
|
|
|
|
|
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-02-11 17:25:56 +00:00
|
|
|
- name: restart unbound
|
|
|
|
action: service name=unbound 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
|
|
|
|
|
|
|
- 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
|
|
|
|
2015-01-06 21:56:49 +00:00
|
|
|
- name: restart haproxy
|
|
|
|
service: name=haproxy state=restarted
|
2015-01-06 22:19:18 +00:00
|
|
|
|
|
|
|
- name: restart varnish
|
|
|
|
service: name=varnish state=restarted
|
2015-01-14 21:29:18 +00:00
|
|
|
|
|
|
|
- name: restart keepalived
|
|
|
|
service: name=keepalived state=restarted
|
2015-01-31 01:35:47 +00:00
|
|
|
|
|
|
|
- name: restart mariadb
|
|
|
|
service: name=mariadb state=restarted
|
2015-02-03 00:46:51 +00:00
|
|
|
|
|
|
|
- name: restart squid
|
|
|
|
service: name=squid 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
|
|
|
|
|
|
|
- name: restart openstack-keystone
|
|
|
|
service: name=openstack-keystone state=restarted
|
2015-03-17 14:15:13 +00:00
|
|
|
|
|
|
|
- name: restart stunnel
|
|
|
|
service: name=stunnel state=restarted
|
2015-06-15 19:14:55 +00:00
|
|
|
|
|
|
|
- name: restart cinder
|
|
|
|
service: name=openstack-cinder-api state=restarted
|
|
|
|
service: name=openstack-cinder-scheduler state=restarted
|
|
|
|
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
|
|
|
|
|
|
|
- name: restart infinoted
|
|
|
|
service: name=infinoted state=restarted
|
2015-10-15 17:07:17 +00:00
|
|
|
|
|
|
|
- name: restart mirrorlist-server
|
|
|
|
service: name=mirrorlist-server state=restarted
|