browbeat/ansible/install/roles/nova/handlers/main.yml
Alex Krzos 850c50eed5 Use handlers to restart services at end of plays.
Change-Id: I2368b94e30e091a3f522f98020d635aaf3d76ccd
2015-12-17 19:13:01 +01:00

36 lines
819 B
YAML

---
#
# Nova handlers for browbeat install connmon
#
- name: unmanage nova services
command: pcs resource unmanage {{ item }}
with_items:
- openstack-nova-api
- openstack-nova-scheduler
- openstack-nova-conductor
ignore_errors: true
- name: restart nova services
service: name={{ item }} state=restarted
with_items:
- openstack-nova-api
- openstack-nova-scheduler
- openstack-nova-conductor
- name: manage nova services
command: pcs resource manage {{ item }}
with_items:
- openstack-nova-api
- openstack-nova-scheduler
- openstack-nova-conductor
ignore_errors: true
- name: cleanup nova services
command: pcs resource cleanup {{ item }}
with_items:
- openstack-nova-api
- openstack-nova-scheduler
- openstack-nova-conductor
ignore_errors: true