sshnaidm.cloud.os_client_config (2.0.0) — module

Get OpenStack Client config

Authors: Monty Taylor (@emonty)

preview | supported by community

Install collection

Install with ansible-galaxy collection install sshnaidm.cloud:==2.0.0


Add to requirements.yml

  collections:
    - name: sshnaidm.cloud
      version: 2.0.0

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
  openstack.cloud.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
  openstack.cloud.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
    elements: str
    required: false
    type: list