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
40 lines
901 B
YAML
40 lines
901 B
YAML
---
|
|
#
|
|
# Cinder handlers for browbeat install connmon
|
|
#
|
|
|
|
- name: unmanage cinder services
|
|
command: pcs resource unmanage {{ item }}
|
|
become: true
|
|
with_items:
|
|
- openstack-cinder-api
|
|
- openstack-cinder-scheduler
|
|
- openstack-cinder-volume
|
|
ignore_errors: true
|
|
|
|
- name: restart cinder services
|
|
service: name={{ item }} state=restarted
|
|
become: true
|
|
with_items:
|
|
- openstack-cinder-api
|
|
- openstack-cinder-scheduler
|
|
- openstack-cinder-volume
|
|
|
|
- name: manage cinder services
|
|
command: pcs resource manage {{ item }}
|
|
become: true
|
|
with_items:
|
|
- openstack-cinder-api
|
|
- openstack-cinder-scheduler
|
|
- openstack-cinder-volume
|
|
ignore_errors: true
|
|
|
|
- name: cleanup cinder services
|
|
command: pcs resource cleanup {{ item }}
|
|
become: true
|
|
with_items:
|
|
- openstack-cinder-api
|
|
- openstack-cinder-scheduler
|
|
- openstack-cinder-volume
|
|
ignore_errors: true
|