diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-01-04 14:39:23 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-01-04 14:39:23 +0100 |
commit | c3df634ef65332b68a509c4651a0eb8657642321 (patch) | |
tree | a8555a07e1490f15cbd0b09f03f2f0c9d956f135 /dan | |
parent | sensor: i2c bus detection using regex for name (diff) | |
parent | add some todo docs (diff) |
Merge branch 'topic/openwrt-vm'
Diffstat (limited to 'dan')
-rw-r--r-- | dan/image-generate.yml | 13 | ||||
-rw-r--r-- | dan/vm-deploy.yml | 18 |
2 files changed, 31 insertions, 0 deletions
diff --git a/dan/image-generate.yml b/dan/image-generate.yml index a7d38149..4c2f5fb9 100644 --- a/dan/image-generate.yml +++ b/dan/image-generate.yml @@ -5,3 +5,16 @@ 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 %} diff --git a/dan/vm-deploy.yml b/dan/vm-deploy.yml new file mode 100644 index 00000000..33268b6d --- /dev/null +++ b/dan/vm-deploy.yml @@ -0,0 +1,18 @@ +--- +- name: generate os image + hosts: "{{ install_hostname }}" + connection: local + gather_facts: no + roles: + - role: "{{ install_distro }}/image" + +- name: cook variables for host + hosts: "{{ install_hostname }}" + gather_facts: no + tasks: + - set_fact: + install: "{{ install | default({}) }}" + network: "{{ network | default({}) }}" + vm_host: "{{ vm_host | default({}) }}" + +- import_playbook: ../common/vm-deploy.yml |