ansible.builtin.os_client_config (v2.9.27) — module

Get OpenStack Client config

| "added in version" 2.0 of ansible.builtin"

Authors: Monty Taylor (@emonty)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Get I(openstack) client config data from clouds.yaml or environment


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get list of clouds that do not support security groups
  os_client_config:
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- debug:
    var: "{{ item }}"
  with_items: "{{ openstack.clouds | rejectattr('secgroup_source', 'none') | list }}"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get the information back just about the mordred cloud
  os_client_config:
    clouds:
      - mordred

Inputs

    
clouds:
    default: []
    description:
    - List of clouds to limit the return list to. No value means return information on
      all configured clouds
    required: false