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