community / community.vmware / 0.4.0 / module / vmware_content_library_info Gather information about VMWare Content Library Authors: Pavan Bidkar (@pgbidkar) preview | supported by communitycommunity.vmware.vmware_content_library_info (0.4.0) — module
Install with ansible-galaxy collection install community.vmware:==0.4.0
collections: - name: community.vmware version: 0.4.0
Module to list the content libraries.
Module to get information about specific content library.
Content Library feature is introduced in vSphere 6.0 version, so this module is not supported in the earlier versions of vSphere.
All variables and VMware object names are case sensitive.
- name: Get List of Content Libraries vmware_content_library_info: hostname: '{{ vcenter_hostname }}' username: '{{ vcenter_username }}' password: '{{ vcenter_password }}' delegate_to: localhost
- name: Get information about content library vmware_content_library_info: hostname: '{{ vcenter_hostname }}' username: '{{ vcenter_username }}' password: '{{ vcenter_password }}' library_id: '13b0f060-f4d3-4f84-b61f-0fe1b0c0a5a8' validate_certs: no delegate_to: localhost
port: default: 443 description: - The port number of the vSphere vCenter. - If the value is not specified in the task, the value of environment variable C(VMWARE_PORT) will be used instead. type: int hostname: description: - The hostname or IP address of the vSphere vCenter server. - If the value is not specified in the task, the value of environment variable C(VMWARE_HOST) will be used instead. type: str password: aliases: - pass - pwd description: - The password of the vSphere vCenter server. - If the value is not specified in the task, the value of environment variable C(VMWARE_PASSWORD) will be used instead. type: str protocol: choices: - http - https default: https description: - The connection to protocol. type: str username: aliases: - admin - user description: - The username of the vSphere vCenter server. - If the value is not specified in the task, the value of environment variable C(VMWARE_USER) will be used instead. type: str library_id: description: - content library id for which details needs to be fetched. required: false type: str validate_certs: default: true description: - Allows connection when SSL certificates are not valid. - Set to C(no) when certificates are not trusted. - If the value is not specified in the task, the value of environment variable C(VMWARE_VALIDATE_CERTS) will be used instead. type: bool
content_lib_details: description: list of content library metadata returned: on success sample: - library_creation_time: '2019-07-02T11:50:52.242000' library_description: new description library_id: 13b0f060-f4d3-4f84-b61f-0fe1b0c0a5a8 library_name: demo-local-lib library_publish_info: authentication_method: NONE persist_json_enabled: false publish_url: null published: false user_name: null library_server_guid: 0fd5813b-aac7-4b92-9fb7-f18f16565613 library_type: LOCAL library_version: '3' type: list content_libs: description: list of content libraries returned: on success sample: - ded9c4d5-0dcd-4837-b1d8-af7398511e33 - 36b72549-14ed-4b5f-94cb-6213fecacc02 type: list