ansible / ansible.builtin / v2.6.17 / module / one_image_facts Gather facts about OpenNebula images | "added in version" 2.6 of ansible.builtin" Authors: Milan Ilic (@ilicmilan) preview | supported by communityansible.builtin.one_image_facts (v2.6.17) — module
pip
Install with pip install ansible==2.6.17
Gather facts about OpenNebula images
# Gather facts about all images - one_image_facts: register: result
# Print all images facts - debug: msg: result
# Gather facts about an image using ID - one_image_facts: ids: - 123
# Gather facts about an image using the name - one_image_facts: name: 'foo-image' register: foo_image
# Gather facts about all IMAGEs whose name matches regex 'app-image-.*' - one_image_facts: name: '~app-image-.*' register: app_images
# Gather facts about all IMAGEs whose name matches regex 'foo-image-.*' ignoring cases - one_image_facts: name: '~*foo-image-.*' register: foo_images
ids: aliases: - id description: - A list of images ids whose facts you want to gather. name: description: - A C(name) of the image whose facts will be gathered. - If the C(name) begins with '~' the C(name) will be used as regex pattern - which restricts the list of images (whose facts will be returned) whose names match specified regex. - Also, if the C(name) begins with '~*' case-insensitive matching will be performed. - See examples for more details. api_url: description: - URL of the OpenNebula RPC server. - It is recommended to use HTTPS so that the username/password are not - transferred over the network unencrypted. - If not set then the value of the C(ONE_URL) environment variable is used. api_password: description: - Password of the user to login into OpenNebula RPC server. If not set - then the value of the C(ONE_PASSWORD) environment variable is used. api_username: description: - Name of the user to login into the OpenNebula RPC server. If not set - then the value of the C(ONE_USERNAME) environment variable is used.
images: contains: group_id: description: image's group id sample: 1 type: int group_name: description: image's group name sample: one-users type: string id: description: image id sample: 153 type: int name: description: image name sample: app1 type: string owner_id: description: image's owner id sample: 143 type: int owner_name: description: image's owner name sample: ansible-test type: string running_vms: description: count of running vms that use this image sample: 7 type: int state: description: state of image instance sample: READY type: string used: description: is image in use sample: true type: bool description: A list of images info returned: success type: complex