W3cubDocs

/Ansible 2.10

openstack.cloud.os_client_config – Get OpenStack Client config

Note

This plugin is part of the openstack.cloud collection.

To install it use: ansible-galaxy collection install openstack.cloud.

To use it in a playbook, specify: openstack.cloud.os_client_config.

Synopsis

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

Requirements

The below requirements are needed on the host that executes this module.

  • python >= 3.6
  • openstacksdk

Parameters

Parameter Choices/Defaults Comments
clouds
list / elements=string
Default:
[]
List of clouds to limit the return list to. No value means return information on all configured clouds

Notes

Note

  • Facts are placed in the openstack.clouds variable.

Examples

- name: Get list of clouds that do not support security groups
  openstack.cloud.config:

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

- name: Get the information back just about the mordred cloud
  openstack.cloud.config:
    clouds:
      - mordred

Authors

  • OpenStack Ansible SIG

© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/openstack/cloud/os_client_config_module.html