browbeat/ansible/gather/roles/glance/tasks/main.yml

15 lines
352 B
YAML

---
#
# Tasks to get Glance facts
#
- name: Parse Glance config files
become: true
command: "python /tmp/openstack-config-parser.py glance /tmp/out.yml"
- name: Fetch output
fetch: "src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes"
- name: Load configuration variables
include_vars: /tmp/out-{{ inventory_hostname }}.yml