a few setups cleanly initialized

This commit is contained in:
2023-06-26 11:02:01 +02:00
parent 11bda1cc7b
commit d9f97dd63a
21 changed files with 729 additions and 63 deletions

View File

@@ -0,0 +1,32 @@
- name: Proxmox VM provisioning
community.general.proxmox_kvm:
api_host: "{{ ansible_host }}"
api_user: "{{ proxmox_user }}"
api_token_id: "{{ proxmox_token_id }}"
api_token_secret: "{{ proxmox_token }}"
node: "{{ proxmox_node }}"
# source:
clone: fedora-server-template
# created manually already installed
vmid: 100
# newid: "{{ 110 + loop_index }}"
name: "{{ item.name }}"
storage: VM_storage
agent: true
timeout: 60
loop: "{{ vms }}"
- name: Ensure VMs are booted
community.general.proxmox_kvm:
api_host: "{{ ansible_host }}"
api_user: "{{ proxmox_user }}"
api_token_id: "{{ proxmox_token_id }}"
api_token_secret: "{{ proxmox_token }}"
node: "{{ proxmox_node }}"
# set manually:
name: "{{ item.name }}"
state: started
loop: "{{ vms }}"