dubzland.openstack.openstack_get_fact (1.1.0) — module

Retrieves a fact from local OpenStack facts.

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

Reads the fact from variables in C(hostvars['ansible_local']), so be sure facts are already gathered.

Uses the M(ansible.builtin.set_fact) module to actually assign the fact.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Retrieve the OpenStack version
  dubzland.openstack.openstack_get_fact:
    section: repository
    option: codename
    as: _openstack_version

Inputs

    
as:
    description: Variable to be set with the fact value.
    required: true
    type: str

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

section:
    description: Section within the OpenStack facts file where fact is stored.
    required: true
    type: str

See also