dubzland.openstack.openstack_set_fact module – Records a local fact about the OpenStack configuration.
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_set_fact
.
Synopsis
Uses the community.general.ini_file module to store facts locally.
Stores the facts in
/etc/ansible/facts.d/openstack.fact
.Fact file will be owned by user and group
root
, with mode0640
.
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 |
---|---|
Name of the fact being stored. |
|
Section within the OpenStack facts file to store this fact. |
|
Actual fact being stored. |
See Also
See also
- community.general.ini_file
The official documentation on the community.general.ini_file module.
Examples
- name: Record the OpenStack version
dubzland.openstack.openstack_set_fact:
section: repository
option: codename
value: antelope