browbeat/ansible/gather/roles/ceilometer/tasks/main.yml
agopi d2cc39e10d Fixing gather to run against containerized UC
Since OSP14 has containerized UC, the current way of checking
for config file in /etc will fail and ths even though
config-parser is configured to look at /var/lib/config-data
the task would be skipped.
Using ansible_env.HOME to source stackrc.

Change-Id: I72d7d8572cdbac9b5fb3e8c8b5366b9f77dc03ec
2018-09-20 10:25:50 -04:00

18 lines
483 B
YAML

---
#
# Tasks to get ceilometer facts
#
- name: Parse Ceilometer config
become: true
command: python /tmp/openstack-config-parser.py ceilometer /tmp/out.yml
register: ceilometer_parsed
ignore_errors: true
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: ceilometer_parsed is succeeded
- name: Load configuration variables
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: ceilometer_parsed is succeeded