Skip to content

Commit

Permalink
add cloud-init
Browse files Browse the repository at this point in the history
  • Loading branch information
andreygubarev committed May 25, 2023
1 parent d30e5a2 commit a037fbe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions molecule_qemu/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@
- name: Launch VMs # noqa: no-changed-when
ansible.builtin.command: >
qemu-system-{{ item.vm_arch }}
-m {{ item.vm_memory }}
-boot d
-cdrom {{ molecule_ephemeral_directory }}/run/cloud-init/{{ item.name }}.iso
-hda {{ item.vm_run_diskfile }}
-net user,hostfwd=tcp::{{ item.vm_ssh_port }}-:22
-m {{ item.vm_memory }}
-net nic
-net user,hostfwd=tcp::{{ item.vm_ssh_port }}-:22
-display none
-daemonize
-pidfile {{ item.vm_run_pidfile }}
Expand Down

0 comments on commit a037fbe

Please sign in to comment.