blob: 21bc4c83b75baac055d7b371bd1ecfe490900d6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
---
- name: download iso
get_url:
url: https://github.com/siderolabs/talos/releases/download/v1.4.4/talos-amd64.iso
dest: /var/lib/vz/template/iso/talos-amd64-v1.4.4.iso
delegate_to: "{{ proxmox.host }}"
run_once: True
- name: create vm
command: qm create {{ proxmox.id }} --cdrom local:iso/talos-amd64-v1.4.4.iso --cores 12 --memory 8192 --name {{ inventory_hostname }} --onboot 1 --start 1 --virtio0 local-zfs:32 --cpu host --net0 virtio,bridge=vmbr0
delegate_to: "{{ proxmox.host }}"
args:
creates: /etc/pve/qemu-server/{{ proxmox.id }}.conf
- name: get ip
script: get-ip {{ proxmox.id }}
delegate_to: "{{ proxmox.host }}"
register: ip
until: ip.rc == 0
retries: 20
delay: 1
|