simplify test-vm-2 playbook
Infrastructure / Check and run Ansbile playbooks (push) Successful in 1m50s
Details
Infrastructure / Check and run Ansbile playbooks (push) Successful in 1m50s
Details
This commit is contained in:
parent
2fe1ffddc3
commit
06c2228bd1
|
@ -13,27 +13,17 @@
|
||||||
community.general.proxmox_kvm:
|
community.general.proxmox_kvm:
|
||||||
tags:
|
tags:
|
||||||
- managed
|
- managed
|
||||||
register: vm
|
- name: Wait for test-vm-2 to exist
|
||||||
- name: Print VM data
|
community.general.proxmox_kvm:
|
||||||
ansible.builtin.debug:
|
state: current
|
||||||
var: vm
|
retries: 30
|
||||||
- name: Modify test-vm-2
|
delay: 10
|
||||||
when: vm.vmid is defined
|
- name: Update test-vm-2
|
||||||
module_defaults:
|
community.general.proxmox_kvm:
|
||||||
community.general.proxmox_kvm:
|
cpu: x86-64-v3
|
||||||
vmid: "{{ vm.vmid }}"
|
memory: 2048
|
||||||
block:
|
cores: 5
|
||||||
- name: Wait for test-vm-2 to exist
|
update: true
|
||||||
community.general.proxmox_kvm:
|
- name: Start test-vm-2
|
||||||
state: current
|
community.general.proxmox_kvm:
|
||||||
retries: 30
|
state: restarted
|
||||||
delay: 10
|
|
||||||
- name: Update test-vm-2
|
|
||||||
community.general.proxmox_kvm:
|
|
||||||
cpu: x86-64-v3
|
|
||||||
memory: 2048
|
|
||||||
cores: 5
|
|
||||||
update: true
|
|
||||||
- name: Start test-vm-2
|
|
||||||
community.general.proxmox_kvm:
|
|
||||||
state: restarted
|
|
||||||
|
|
Loading…
Reference in New Issue