test some stuff
Infrastructure / Check and run Ansbile playbooks (push) Failing after 1m27s Details

This commit is contained in:
Gleb Koval 2023-09-03 00:26:25 +01:00
parent 95661f27e5
commit ac4bd0a226
Signed by: cyclane
GPG Key ID: 15E168A8B332382C
1 changed files with 24 additions and 12 deletions

View File

@ -11,16 +11,28 @@
tasks: tasks:
- name: Create test-vm-2 - name: Create test-vm-2
community.general.proxmox_kvm: community.general.proxmox_kvm:
register: create_data tags:
- name: Print create_data - managed
register: vm
- name: Print VM data
ansible.builtin.debug: ansible.builtin.debug:
msg: "{{ create_data }}" msg: "{{ vm }}"
- name: Update test-vm-2 - name: Modify test-vm-2
community.general.proxmox_kvm: module_defaults:
cpu: x86-64-v3 community.general.proxmox_kvm:
memory: 2048 vmid: "{{ vm.vmid }}"
cores: 5 tasks:
update: true - name: Wait for test-vm-2 to exist
- name: Start test-vm-2 community.general.proxmox_kvm:
community.general.proxmox_kvm: state: current
state: restarted retries: 30
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