summaryrefslogtreecommitdiff
path: root/dan/image-generate.yml
blob: 4c2f5fb9f32099ec9488efcfa8f3741a05f4193a (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: "{{ 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 %}