Documentation

os_client_config - Get OpenStack Client config

New in version 2.0.

Synopsis

  • Get openstack client config data from clouds.yaml or environment

Options

parameter required default choices comments
clouds
no
List of clouds to limit the return list to. No value means return information on all configured clouds

Examples

- name: Get list of clouds that do not support security groups
  os_client_config:

- debug:
    var: "{{ item }}"
  with_items: "{{ openstack.clouds | rejectattr('secgroup_source', 'none') | list }}"

- name: Get the information back just about the mordred cloud
  os_client_config:
    clouds:
      - mordred

Notes

Note

  • Facts are placed in the openstack.clouds variable.

Status

This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.

Support

This module is community maintained without core committer oversight.

For more information on what this means please read Module Support

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.