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 mode 0640.

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

option

string / required

Name of the fact being stored.

section

string / required

Section within the OpenStack facts file to store this fact.

value

string / required

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

Authors

  • Josh Williams (@t3hpr1m3)