Gather information about Equinix Metal organizations
- name: Gather information about all organizations
hosts: localhost
tasks:
- equinix.cloud.metal_organization_info:
- name: Gather information about organizations without projects
hosts: localhost
tasks:
- equinix.cloud.metal_organization_info:
without_projects: true
- name: Get IDs or organizations with "ansible" in name
hosts: localhost
tasks:
- equinix.cloud.metal_organization_info:
register: organizations
name: filter organizations
set_fact:
ansible_orgs: "{{ organizations.resources | selectattr('name', 'match', desired_name_substring) }}"
Field | Type | Required | Description |
---|---|---|---|
personal |
bool |
Optional | If true, only personal organizations will be returned. |
without_projects |
bool |
Optional | If true, only organizations without projects will be returned. |
{
"description": "",
"id": "72342434-9423-454e-8423-ab6546461d99",
"name": "Tomas\u2019 Projects",
"projects": [
"43767515-846c-46ed-b0f5-23423422ea06",
"635673f1-bce5-4a62-a47c-133342342349"
],
"website": ""
}