Note
This module is part of the community.general collection (version 10.7.3).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.general. You need further requirements to be able to use this module, see Requirements for details.
To use it in a playbook, specify: community.general.clc_group.
version 11.0.0
Lumen Public Cloud (formerly known as CenturyLink Cloud) has gone End-of-Life in September 2023. See more at https://www.ctl.io/knowledge-base/release-notes/2023/lumen-public-cloud-platform-end-of-life-notice/?.
There is none.
The below requirements are needed on the host that executes this module.
Parameter | Comments |
|---|---|
description string | A description of the Server Group. |
location string | Datacenter to create the group in. If location is not provided, the group gets created in the default datacenter associated with the account. |
name string / required | The name of the Server Group. |
parent string | The parent group of the server group. If parent is not provided, it creates the group at top level. |
state string | Whether to create or delete the group. Choices:
|
wait boolean | Whether to wait for the tasks to finish before returning. Choices:
|
Attribute | Support | Description |
|---|---|---|
check_mode | Support: full | Can run in |
diff_mode | Support: none | Will return details on what has changed (or possibly needs changing in |
Note
CLC_V2_API_USERNAME, the account login ID for the Centurylink Cloud.CLC_V2_API_PASSWORD, the account password for the Centurylink Cloud.CLC_V2_API_TOKEN, the API token generated from https://api.ctl.io/v2/authentication/login.CLC_ACCT_ALIAS, the account alias associated with the Centurylink Cloud.CLC_V2_API_URL to specify an endpoint for pointing to a different CLC environment.# Create a Server Group
- name: Create Server Group
hosts: localhost
gather_facts: false
connection: local
tasks:
- name: Create / Verify a Server Group at CenturyLink Cloud
community.general.clc_group:
name: My Cool Server Group
parent: Default Group
state: present
register: clc
- name: Debug
ansible.builtin.debug:
var: clc
# Delete a Server Group
- name: Delete Server Group
hosts: localhost
gather_facts: false
connection: local
tasks:
- name: Delete / Verify Absent a Server Group at CenturyLink Cloud
community.general.clc_group:
name: My Cool Server Group
parent: Default Group
state: absent
register: clc
- name: Debug
ansible.builtin.debug:
var: clc
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
group dictionary | The group information. Returned: success Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/clc_group_module.html