Remove previous change, ensure we always run a task to check that we can

connect to the new box
master
Ronald 1 year ago
parent 90f223fa77
commit 13b586d688

@ -27,11 +27,11 @@
changed_when: true changed_when: true
delegate_to: localhost delegate_to: localhost
- name: Connect - Ensure we can connect - name: Connect - Ensure we can connect
ansible.builtin.wait_for_connection: ansible.builtin.wait_for_connection:
connect_timeout: 10 connect_timeout: 10
delay: 5 delay: 5
sleep: 2 sleep: 2
timeout: 120 timeout: 120
... ...

@ -94,7 +94,9 @@
ipconfig: "{{ create_vm_proxmox_cloudinit_ipconfig }}" ipconfig: "{{ create_vm_proxmox_cloudinit_ipconfig }}"
nameservers: "{{ create_vm_proxmox_cloudinit_nameservers }}" nameservers: "{{ create_vm_proxmox_cloudinit_nameservers }}"
searchdomains: "{{ create_vm_proxmox_cloudinit_searchdomains }}" searchdomains: "{{ create_vm_proxmox_cloudinit_searchdomains }}"
when: create_vm_proxmox_configure_cloudinit | bool when:
- create_vm_proxmox_check_if_vm_exists.proxmox_vms | length == 0
- create_vm_proxmox_configure_cloudinit | bool
delegate_to: localhost delegate_to: localhost
- name: Proxmox - Enable QEMU guest agent for VM - name: Proxmox - Enable QEMU guest agent for VM

Loading…
Cancel
Save