Image
image
This is a simple module that supports updating or removing Images. This module has a dependency on ionoscloud >= 6.0.2
Example Syntax
name: Update image
ionoscloudsdk.ionoscloud.image:
image_id: 87fe5b95-05e4-11ee-a7cb-028794406dc9
name: debian-11.7.0-amd64-netinst-renamed.iso
description: An image used for testing the Ansible Module
cpu_hot_plug: true
cpu_hot_unplug: false
ram_hot_plug: true
ram_hot_unplug: true
nic_hot_plug: true
nic_hot_unplug: true
disc_virtio_hot_plug: true
disc_virtio_hot_unplug: true
disc_scsi_hot_plug: true
disc_scsi_hot_unplug: false
licence_type: LINUX
cloud_init: V1
state: update
register: image_output
name: Delete image
ionoscloudsdk.ionoscloud.image:
image_id: 916b10ea-be31-11eb-b909-c608708a73fa
state: absent
Returned object
For more examples please check out the tests here.
state: absent
Available parameters for state absent:
image_id str
True
The ID of the image.
name str
False
The resource name.
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
wait bool
False
Wait for the resource to be created before returning. Default: True Options: [True, False]
wait_timeout int
False
How long before wait gives up, in seconds. Default: 600
state str
False
Indicate desired state of the resource. Default: present Options: ['absent', 'update']
state: update
Available parameters for state update:
image_id str
True
The ID of the image.
name str
False
The resource name.
description str
False
Human-readable description.
cpu_hot_plug bool
False
Hot-plug capable CPU (no reboot required).
cpu_hot_unplug bool
False
Hot-unplug capable CPU (no reboot required).
ram_hot_plug bool
False
Hot-plug capable RAM (no reboot required).
ram_hot_unplug bool
False
Hot-unplug capable RAM (no reboot required).
nic_hot_plug bool
False
Hot-plug capable NIC (no reboot required).
nic_hot_unplug bool
False
Hot-unplug capable NIC (no reboot required).
disc_scsi_hot_plug bool
False
Hot-plug capable SCSI drive (no reboot required).
disc_scsi_hot_unplug bool
False
Hot-unplug capable SCSI drive (no reboot required). Not supported with Windows VMs.
disc_virtio_hot_plug bool
False
Hot-plug capable Virt-IO drive (no reboot required).
disc_virtio_hot_unplug bool
False
Hot-unplug capable Virt-IO drive (no reboot required). Not supported with Windows VMs.
licence_type str
True
The OS type of this image.
cloud_init str
False
Cloud init compatibility.
api_url str
False
The Ionos API base URL.
certificate_fingerprint str
False
The Ionos API certificate fingerprint.
username str
False
The Ionos username. Overrides the IONOS_USERNAME environment variable.
password str
False
The Ionos password. Overrides the IONOS_PASSWORD environment variable.
token str
False
The Ionos token. Overrides the IONOS_TOKEN environment variable.
wait bool
False
Wait for the resource to be created before returning. Default: True Options: [True, False]
wait_timeout int
False
How long before wait gives up, in seconds. Default: 600
state str
False
Indicate desired state of the resource. Default: present Options: ['absent', 'update']
Last updated
