dubzland.openstack.openstack_get_fact module – Retrieves a fact from local OpenStack facts.
Note
This module is part of the dubzland.openstack collection (version 1.1.0).
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 dubzland.openstack
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: dubzland.openstack.openstack_get_fact
.
Synopsis
Reads the fact from variables in
hostvars['ansible_local']
, so be sure facts are already gathered.Uses the ansible.builtin.set_fact module to actually assign the fact.
Note
This module has a corresponding action plugin.
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.8
Parameters
Parameter |
Comments |
---|---|
Variable to be set with the fact value. |
|
Name of the fact being retrieved. |
|
Section within the OpenStack facts file where fact is stored. |
See Also
See also
- ansible.builtin.set_fact
The official documentation on the ansible.builtin.set_fact module.
Examples
- name: Retrieve the OpenStack version
dubzland.openstack.openstack_get_fact:
section: repository
option: codename
as: _openstack_version