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
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
2012-10-17 19:54:24 +00:00
|
|
|
- name: restart httpd
|
2014-03-14 15:30:32 +00:00
|
|
|
command: /usr/local/bin/conditional-restart.sh httpd httpd
|
2013-04-15 16:57:30 +00:00
|
|
|
|
2013-05-17 15:55:25 +00:00
|
|
|
- name: reload httpd
|
|
|
|
action: service name=httpd state=reloaded
|
|
|
|
|
|
|
|
- name: restart iptables
|
|
|
|
action: service name=iptables state=restarted
|
2012-10-17 19:54:24 +00:00
|
|
|
|
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
|
|
|
|
|
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
|
2014-08-01 12:58:11 +02:00
|
|
|
|
2014-09-24 17:32:29 +00:00
|
|
|
- name: restart openvpn (RHEL6)
|
2014-09-24 17:41:38 +00:00
|
|
|
when: ansible_distribution == "RedHat" and ansible_distribution_major_version == "6"
|
2014-08-01 12:34:34 +02:00
|
|
|
action: service name=openvpn state=restarted
|
|
|
|
|
2014-09-24 17:32:29 +00:00
|
|
|
- name: restart openvpn (RHEL7)
|
2014-09-24 17:41:38 +00:00
|
|
|
when: ansible_distribution == "RedHat" and ansible_distribution_major_version == "7"
|
2014-06-30 21:12:06 +00:00
|
|
|
action: service name=openvpn@openvpn state=restarted
|
|
|
|
|
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
|
|
|
|
|
|
|
- name: hup libvirtd
|
|
|
|
command: pkill -HUP libvirtd
|
|
|
|
ignore_errors: true
|
|
|
|
when: inventory_hostname.startswith('buildhw')
|
2014-11-17 15:35:29 +00:00
|
|
|
|
|
|
|
- name: restart fcomm-cache-worker
|
|
|
|
service: name=fcomm-cache-worker state=restarted
|