dubzland / dubzland.openstack / 1.1.0 / module / openstack_get_fact Retrieves a fact from local OpenStack facts. Authors: Josh Williams (@t3hpr1m3) This plugin has a corresponding action plugin.dubzland.openstack.openstack_get_fact (1.1.0) — module
Install with ansible-galaxy collection install dubzland.openstack:==1.1.0
collections: - name: dubzland.openstack version: 1.1.0
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.
- name: Retrieve the OpenStack version dubzland.openstack.openstack_get_fact: section: repository option: codename as: _openstack_version
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