20 lines
663 B
YAML
Executable File
20 lines
663 B
YAML
Executable File
# NEED TO CHANGE THIS TO ONLY DO IT WHEN DOESN'T EXIST
|
|
- name: get latest cloud-init image
|
|
ansible.builtin.get_url:
|
|
url: https://cdimage.debian.org/images/cloud/trixie/daily/latest/debian-13-generic-amd64-daily.qcow2
|
|
dest: /var/lib/vz/template/iso/debian-13-generic-amd64-daily.qcow2
|
|
|
|
- name: opnsense
|
|
community.general.proxmox_kvm:
|
|
name: opnsense
|
|
node: "{{ proxmox_node }}"
|
|
vmid: "{{ opnsense_id }}"
|
|
api_user: "{{ proxmox_api_user }}"
|
|
api_token_id: "{{ proxmox_token_id }}"
|
|
api_token_secret: "{{ proxmox_secret }}"
|
|
api_host: "{{ ansible_ssh_host }}"
|
|
state: started
|
|
net0: bridge=vmbr0
|
|
net1: bridge=vmbr1
|
|
|