community.general.one_image_info – Gather information on OpenNebula images¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.one_image_info
.
Synopsis¶
Gather information on OpenNebula images.
This module was called
one_image_facts
before Ansible 2.9. The usage did not change.
Parameters¶
Examples¶
- name: Gather facts about all images
community.general.one_image_info:
register: result
- name: Print all images facts
ansible.builtin.debug:
msg: result
- name: Gather facts about an image using ID
community.general.one_image_info:
ids:
- 123
- name: Gather facts about an image using the name
community.general.one_image_info:
name: 'foo-image'
register: foo_image
- name: Gather facts about all IMAGEs whose name matches regex 'app-image-.*'
community.general.one_image_info:
name: '~app-image-.*'
register: app_images
- name: Gather facts about all IMAGEs whose name matches regex 'foo-image-.*' ignoring cases
community.general.one_image_info:
name: '~*foo-image-.*'
register: foo_images
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Milan Ilic (@ilicmilan)
Jan Meerkamp (@meerkampdvv)