dubzland.utils.set_persistent_fact module – Records a persistent fact on the destination machine.
Note
This module is part of the dubzland.utils collection (version 1.0.1).
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.utils
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: dubzland.utils.set_persistent_fact
.
Synopsis
Uses the community.general.ini_file module to store facts locally.
Stores the facts in
/etc/ansible/facts.d
.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 |
---|---|
Used as the filename for the target fact file. |
|
Name of the fact being stored. |
|
Section within the component 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.utils.set_persistent_fact:
component: openstack
section: repository
option: codename
value: antelope