1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules/cloud/opennebula
patchback[bot] ff08c20f12
one_vm: add release action (#4036) (#4077)
* one_vm: add release action

Previously you could create VMs with the `vm_start_on_hold` parameter
but then ansible couldn't release the VMs so they would be scheduled to
run. This PR adds the ability to release VMs which are in the 'HOLD'
state.

* Add changelog fragment

* Update changelogs/fragments/4036-onevm-add-release-action.yaml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/cloud/opennebula/one_vm.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Make releasing a VM part of the running state

When `state: running` is specified the code checks if the VM is in a
'HOLD' state and will release the VM when needed.

Co-authored-by: Gerben Welter <gerben.welter@hcs-company.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit a4983ce38a)

Co-authored-by: Gerben Welter <gerben@welter.nu>
2022-01-24 21:00:19 +01:00
..
one_host.py mass-added the utf-8 marker (#3163) 2021-08-08 10:40:22 +02:00
one_image.py opennebula: fix error message when renaming an image (#3626) 2021-10-31 18:37:34 +01:00
one_image_info.py Remove deprecated modules scheduled for removal in 3.0.0 (#1924) 2021-04-13 11:19:25 +00:00
one_service.py Tidy up validate-modules:no-default-for-required-parameter and other cases (#1423) 2020-12-01 21:28:40 +01:00
one_template.py Fix new devel sanity errors. (#3194) 2021-08-12 12:07:50 +02:00
one_vm.py one_vm: add release action (#4036) (#4077) 2022-01-24 21:00:19 +01:00