infra-setup (#2)
Some checks failed
Infrastructure / Check infrastructure definitions (push) Successful in 1m33s
Infrastructure / Deploy modified infrastructure (push) Failing after 1m36s

Reviewed-on: #2
This commit is contained in:
2023-09-02 17:54:03 +00:00
parent 81eb9300fb
commit 7db11c6506
4 changed files with 102 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
- name: Proxmox test-vm
hosts: localhost
module_defaults:
community.general.proxmox_kvm:
api_user: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_ID') | regex_replace('!.*') }}"
api_host: "{{ lookup('ansible.builtin.env', 'PROXMOX_HOST' ) }}"
api_token_id: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_ID') | regex_replace('.*!') }}"
api_token_secret: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_SECRET') }}"
name: test-vm
node: pve
tasks:
- name: Create test-vm
community.general.proxmox_kvm:
name: test-vm
node: pve
- name: Update test-vm
community.general.proxmox_kvm:
cpu: x86-64-v3
memory: 2048
cores: 3
update: true
- name: Start test-vm
community.general.proxmox_kvm:
state: started