community / community.general / 6.6.8 / module / manageiq_tags_info Retrieve resource tags in ManageIQ | "added in version" 5.8.0 of community.general" Authors: Alexei Znamensky (@russoz)community.general.manageiq_tags_info (6.6.8) — module
Install with ansible-galaxy collection install community.general:==6.6.8
collections: - name: community.general version: 6.6.8
This module supports retrieving resource tags from ManageIQ.
- name: List current tags for a provider in ManageIQ. community.general.manageiq_tags_info: resource_name: 'EngLab' resource_type: 'provider' manageiq_connection: url: 'http://127.0.0.1:3000' username: 'admin' password: 'smartvm' register: result
resource_id: description: - The ID of the resource at which tags will be controlled. - Must be specified if I(resource_name) is not set. Both options are mutually exclusive. type: int resource_name: description: - The name of the resource at which tags will be controlled. - Must be specified if I(resource_id) is not set. Both options are mutually exclusive. type: str resource_type: choices: - provider - host - vm - blueprint - category - cluster - data store - group - resource pool - service - service template - template - tenant - user description: - The relevant resource type in ManageIQ. required: true type: str manageiq_connection: description: - ManageIQ connection configuration information. required: false suboptions: ca_cert: aliases: - ca_bundle_path description: - The path to a CA bundle file or directory with certificates. defaults to None. type: str password: description: - ManageIQ password. C(MIQ_PASSWORD) env var if set. otherwise, required if no token is passed in. type: str token: description: - ManageIQ token. C(MIQ_TOKEN) env var if set. otherwise, required if no username or password is passed in. type: str url: description: - ManageIQ environment url. C(MIQ_URL) env var if set. otherwise, it is required to pass it. required: false type: str username: description: - ManageIQ username. C(MIQ_USERNAME) env var if set. otherwise, required if no token is passed in. type: str validate_certs: aliases: - verify_ssl default: true description: - Whether SSL certificates should be verified for HTTPS requests. defaults to True. type: bool type: dict
tags: description: List of tags associated with the resource. elements: dict returned: on success type: list