Skip to content

Commit

Permalink
generate cloudinit iso
Browse files Browse the repository at this point in the history
  • Loading branch information
andreygubarev committed May 25, 2023
1 parent e44a922 commit d30e5a2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions molecule_qemu/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,18 @@
loop_control:
label: "{{ item.name }}"

- name: Create cloud-init iso using mkisofs
ansible.builtin.command: >
mkisofs
-output {{ molecule_ephemeral_directory }}/run/cloud-init/{{ item.name }}.iso
-volid cidata
-joliet
-rock
{{ molecule_ephemeral_directory }}/run/cloud-init/{{ item.name }}/
loop: "{{ molecule_instances }}"
loop_control:
label: "{{ item.name }}"

- name: Launch VMs # noqa: no-changed-when
ansible.builtin.command: >
qemu-system-{{ item.vm_arch }}
Expand Down

0 comments on commit d30e5a2

Please sign in to comment.