--- - name: generate os image hosts: "{{ install_hostnames }}" connection: local gather_facts: no roles: - role: "installer/{{ install_distro }}/image" post_tasks: - pause: seconds: 0 prompt: | The resulting images can be found here: {% for host in play_hosts %} {{ host }}: {% for image in hostvars[host].output_images %} - {{ image }} {% endfor %} {% endfor %}