22 lines
599 B
YAML
22 lines
599 B
YAML
---
|
|
#
|
|
# Tasks to get ceilometer facts
|
|
#
|
|
- name: Check that Ceilometer is installed
|
|
become: true
|
|
stat: path=/etc/ceilometer/ceilometer.conf
|
|
register: ceilometer_config
|
|
|
|
- name: Parse Ceilometer config
|
|
become: true
|
|
shell: python /tmp/openstack-config-parser.py ceilometer /tmp/out.yml
|
|
when: ceilometer_config.stat.exists
|
|
|
|
- name: Fetch output
|
|
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
|
|
when: ceilometer_config.stat.exists
|
|
|
|
- name: Load configuration variables
|
|
include_vars: /tmp/out-{{ inventory_hostname }}.yml
|
|
when: ceilometer_config.stat.exists
|