Note
This module is part of the ngine_io.cloudstack collection (version 2.5.0).
You might already have this collection installed if you are using the ansible package. 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 ngine_io.cloudstack. You need further requirements to be able to use this module, see Requirements for details.
To use it in a playbook, specify: ngine_io.cloudstack.cs_facts.
New in ngine_io.cloudstack 0.1.0
The below requirements are needed on the host that executes this module.
Parameter | Comments |
|---|---|
filter string | Filter for a specific fact. Choices:
|
meta_data_host string | Host or IP of the meta data API service. If not set, determination by parsing the dhcp lease file. |
# Gather all facts on instances
- name: Gather cloudstack facts
ngine_io.cloudstack.cs_facts:
# Gather specific fact on instances
- name: Gather cloudstack facts
ngine_io.cloudstack.cs_facts: filter=cloudstack_instance_id
# Gather specific fact on instances with a given meta_data_host
- name: Gather cloudstack facts
ngine_io.cloudstack.cs_facts:
filter: cloudstack_instance_id
meta_data_host: 169.254.169.254
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
cloudstack_availability_zone string | zone the instance is deployed in. Returned: success Sample: |
cloudstack_instance_id string | UUID of the instance. Returned: success Sample: |
cloudstack_local_hostname string | local hostname of the instance. Returned: success Sample: |
cloudstack_local_ipv4 string | local IPv4 of the instance. Returned: success Sample: |
cloudstack_public_hostname string | public IPv4 of the router. Same as cloudstack_public_ipv4. Returned: success Sample: |
cloudstack_public_ipv4 string | public IPv4 of the router. Returned: success Sample: |
cloudstack_service_offering string | service offering of the instance. Returned: success Sample: |
cloudstack_user_data dictionary | data of the instance provided by users. Returned: success Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/ngine_io/cloudstack/cs_facts_module.html