orphan: |
---|
Note
This module is part of the morpheus.core collection (version 0.7.1).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install morpheus.core
.
To use it in a playbook, specify: morpheus.core.virtual_image_info
.
.. rst-class:: ansible-version-added
New in morpheus.core 0.6.0
- Gathers information about Virtual Images.
.. tabularcolumns:: \X{1}{3}\X{2}{3}
Parameter | Comments |
---|---|
Level of detail returned about Virtual Images .. rst-class:: ansible-option-line |
|
Filter Virtual Images by type .. rst-class:: ansible-option-line |
|
Filter by image type code, e.g. vmware, ami |
|
Filter by matching labels |
|
If true, match all specified labels .. rst-class:: ansible-option-line |
|
Return info for Virtual Image by Name |
|
Treat name parameter as a Regular Expression .. rst-class:: ansible-option-line |
|
Return info for specic Virtual Image by Id |
.. tabularcolumns:: \X{2}{10}\X{3}{10}\X{5}{10}
Attribute | Support | Description |
---|---|---|
:ansible-attribute-support-label:`Support: \ ` :ansible-attribute-support-na:`N/A` Not Required, Module does not make changes. |
Can run in check_mode and return changed status prediction without modifying target |
|
Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode |
||
Target OS/families that can be operated against |
- name: Get Virtual Image by Id
morpheus.core.virtual_image_info:
virtual_image_id: 500
- name: Get Virtual Image by Name
morpheus.core.virtual_image_info:
name: redhat_image
- name: Get Virtual Images by Regex Match
morpheus.core.virtual_image_info:
name: ^.*$
regex_name: true
- name: Get Synced VMware Virtual Images
morpheus.core.virtual_image_info:
filter_type: synced
image_type: vmware
- name: Get User Virtual Images
morpheus.core.virtual_image_info:
filter_type: user
Common return values are documented :ref:`here <common_return_values>`, the following are the fields unique to this module:
.. tabularcolumns:: \X{1}{3}\X{2}{3}
- James Riach (@McGlovin1337)
.. ansible-links:: - title: "Repository (Sources)" url: "https://www.github.com/gomorpheus/ansible-collection-morpheus-core" external: true