Don't set root password in base and again later in host playbook. Download rpms and make sure they are installed rather than using url in yum module. Move cinder restart to a handler.
187 lines
4.9 KiB
YAML
187 lines
4.9 KiB
YAML
########################################
|
|
# Handlers for restarting services
|
|
#
|
|
|
|
- name: restart auditd
|
|
action: service name=auditd state=restarted
|
|
|
|
- name: restart apache
|
|
command: /usr/local/bin/conditional-restart.sh httpd httpd
|
|
|
|
- name: reload apache
|
|
action: service name=httpd state=reloaded
|
|
|
|
- name: restart collectd
|
|
action: service name=collectd state=restarted
|
|
|
|
- name: restart crond
|
|
action: service name=crond state=restarted
|
|
|
|
- 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
|
|
|
|
- name: restart httpd
|
|
command: /usr/local/bin/conditional-restart.sh httpd httpd
|
|
|
|
- name: reload httpd
|
|
action: service name=httpd state=reloaded
|
|
|
|
- name: restart iptables
|
|
action: service name=iptables state=restarted
|
|
|
|
- name: restart ip6tables
|
|
action: service name=ip6tables state=restarted
|
|
|
|
- name: restart jenkins
|
|
action: service name=jenkins state=restarted
|
|
|
|
- name: restart kojid
|
|
action: service name=kojid state=restarted
|
|
|
|
- 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
|
|
|
|
- name: restart libvirtd
|
|
action: service name=libvirtd state=restarted
|
|
|
|
- name: restart lighttpd
|
|
action: service name=lighttpd state=restarted
|
|
|
|
- name: restart mailman
|
|
action: service name=mailman state=restarted
|
|
|
|
- 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
|
|
|
|
- name: restart ntpd
|
|
action: service name=ntpd state=restarted
|
|
|
|
- name: restart openvpn (Fedora)
|
|
when: ansible_distribution == "Fedora"
|
|
action: service name=openvpn@openvpn state=restarted
|
|
|
|
- name: restart openvpn (RHEL6)
|
|
when: ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 6
|
|
action: service name=openvpn state=restarted
|
|
|
|
- name: restart openvpn (RHEL7)
|
|
when: ansible_distribution == "RedHat" and ansible_distribution_major_version|int == 7
|
|
action: service name=openvpn@openvpn state=restarted
|
|
|
|
- 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
|
|
|
|
- name: restart sshd
|
|
action: service name=sshd state=restarted
|
|
|
|
- name: restart xinetd
|
|
action: service name=xinetd state=restarted
|
|
|
|
- name: restart netapproute
|
|
action: command /etc/sysconfig/network-scripts/ifup-routes eth1
|
|
|
|
- name: restart network
|
|
action: service name=network state=restarted
|
|
|
|
- name: restart unbound
|
|
action: service name=unbound state=restarted
|
|
|
|
- name: rebuild postfix transport
|
|
command: /usr/sbin/postmap /etc/postfix/transport
|
|
|
|
- name: restart glusterd
|
|
service: name=glusterd state=restarted
|
|
|
|
- name: restart supervisord
|
|
service: name=supervisord state=restarted
|
|
|
|
- name: run rkhunter
|
|
command: rkhunter --propupd
|
|
|
|
- name: restart moksha-hub
|
|
service: name=moksha-hub state=restarted
|
|
|
|
- name: restart dhcpd
|
|
service: name=dhcpd state=restarted
|
|
|
|
- name: restart memcached
|
|
service: name=memcached state=restarted
|
|
|
|
- name: reload systemd
|
|
command: systemctl daemon-reload
|
|
|
|
- name: restart nagios
|
|
shell: nagios -v /etc/nagios/nagios.cfg && systemctl restart nagios
|
|
|
|
- name: restart bridge
|
|
shell: /usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge
|
|
|
|
- name: reload libvirtd
|
|
service: name=libvirtd state=reloaded
|
|
ignore_errors: true
|
|
when: ansible_virtualization_role == 'host'
|
|
|
|
- name: restart fcomm-cache-worker
|
|
service: name=fcomm-cache-worker state=restarted
|
|
|
|
- name: restart haproxy
|
|
service: name=haproxy state=restarted
|
|
|
|
- name: restart varnish
|
|
service: name=varnish state=restarted
|
|
|
|
- name: restart keepalived
|
|
service: name=keepalived state=restarted
|
|
|
|
- name: restart mariadb
|
|
service: name=mariadb state=restarted
|
|
|
|
- name: restart squid
|
|
service: name=squid state=restarted
|
|
|
|
- name: "update ca-trust"
|
|
command: /usr/bin/update-ca-trust
|
|
|
|
- name: restart openstack-keystone
|
|
service: name=openstack-keystone state=restarted
|
|
|
|
- name: restart stunnel
|
|
service: name=stunnel state=restarted
|
|
|
|
- name: restart cinder
|
|
service: name=openstack-cinder-api state=restarted
|
|
service: name=openstack-cinder-scheduler state=restarted
|
|
service: name=openstack-cinder-volume state=restarted
|