cd3a910ac0
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
36 lines
746 B
YAML
36 lines
746 B
YAML
---
|
|
#
|
|
## Heat handlers for browbeat install connmon
|
|
##
|
|
#
|
|
- name: unmanage heat services
|
|
command: pcs resource unmanage {{ item }}
|
|
become: true
|
|
with_items:
|
|
- openstack-heat-api
|
|
- openstack-heat-engine
|
|
ignore_errors: true
|
|
|
|
- name: restart heat services
|
|
service: name={{ item }} state=restarted
|
|
become: true
|
|
with_items:
|
|
- openstack-heat-api
|
|
- openstack-heat-engine
|
|
|
|
- name: manage heat services
|
|
command: pcs resource manage {{ item }}
|
|
become: true
|
|
with_items:
|
|
- openstack-heat-api
|
|
- openstack-heat-engine
|
|
ignore_errors: true
|
|
|
|
- name: cleanup heat services
|
|
command: pcs resource cleanup {{ item }}
|
|
become: true
|
|
with_items:
|
|
- openstack-heat-api
|
|
- openstack-heat-engine
|
|
ignore_errors: true
|