browbeat/ansible/install/roles/nova/tasks/main.yml

22 lines
484 B
YAML

---
#
# Nova connmon tasks
#
- name: Check for connmon in nova.conf
command: grep -Eq 'connection\s?=\s?mysql:' /etc/nova/nova.conf
register: nova_mysql
become: true
ignore_errors: true
changed_when: false
- name: Enable Connmon in nova.conf
command: sed -i 's/mysql:/mysql+connmon:/g' /etc/nova/nova.conf
when: nova_mysql.rc == 0
become: true
notify:
- unmanage nova services
- restart nova services
- manage nova services
- cleanup nova services