dubzland.openstack.openstack_set_fact (1.1.0) — module

Records a local fact about the OpenStack configuration.

Authors: Josh Williams (@t3hpr1m3)

This plugin has a corresponding action plugin.

Install collection

Install with ansible-galaxy collection install dubzland.openstack:==1.1.0


Add to requirements.yml

  collections:
    - name: dubzland.openstack
      version: 1.1.0

Description

Uses the M(community.general.ini_file) module to store facts locally.

Stores the facts in C(/etc/ansible/facts.d/openstack.fact).

Fact file will be owned by user and group C(root), with mode C(0640).


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Record the OpenStack version
  dubzland.openstack.openstack_set_fact:
    section: repository
    option: codename
    value: antelope

Inputs

    
value:
    description: Actual fact being stored.
    required: true
    type: str

option:
    description: Name of the fact being stored.
    required: true
    type: str

section:
    description: Section within the OpenStack facts file to store this fact.
    required: true
    type: str

See also