summaryrefslogtreecommitdiff
path: root/spreadspace/image-generate.yml
blob: 1b11f1eb14c3da29b0aba6db28a1acbaf7813b67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- 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 %}