mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
1863694297
* proxmox_kvm: new function wait_for_task() (#831)
Allows some factorization of redundant code in stop_vm(), start_vm(),
create_vm() and main().
This new function also waits one extra second after a successful task execution as the API can be a bit ahead of Proxmox.
Before:
TASK [ansible-role-proxmox-instance : Ensure test-instance is created]
changed: [localhost]
TASK [ansible-role-proxmox-instance : Ensure test-instance is updated]
fatal: [localhost]: FAILED! => changed=false
msg: VM test-instance does not exist in cluster.
After:
TASK [ansible-role-proxmox-instance : Ensure test-instance is created]
changed: [localhost]
TASK [ansible-role-proxmox-instance : Ensure test-instance is updated]
changed: [localhost]
With suggestions from Felix Fontein <felix@fontein.de>.
(cherry picked from commit
|
||
---|---|---|
.. | ||
.keep | ||
563-update-terraform-status-test.yaml | ||
777-interfaces_file-re-escape.yml | ||
783-fix-gem-installed-versions.yaml | ||
789-pkg5-wrap-to-modify-package-list.yaml | ||
796-postgresql_privs-grant-option-bug.yaml | ||
802-pushover-device-parameter.yml | ||
811-proxmox-kvm-state-absent.yml | ||
825-bootsource-override-option.yaml | ||
831-proxmox-kvm-wait.yml | ||
843-update-slack-messages.yml | ||
858-postgresql_privs_should_allow_public_role_lowercased.yml | ||
887-rollback-if-nothing-changed.yml | ||
892-slack-token-validation.yml | ||
897-lookup-plugin-hashivault-add-approle-mount-point.yaml | ||
homebrew-cask-at-symbol-fix.yaml |