jkilpatr cd3a910ac0 Removed Ansible become from Conmon install
This commit changes the conmon install playbook as well as the
required tasks and handlers to use become instead of having
the whole playbook run as root by ansible_become. The playbook
has been tested against my own cloud.

https://trello.com/c/KBFbahdV/38-ansible-remove-ansible-become-from-vars-and-use-become-instead

Change-Id: Icf89451371dd9fc5da9880d6a00ae91c88011970
2016-07-20 09:40:51 -04:00

40 lines
879 B
YAML

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