cloudscale_ch / cloudscale_ch.cloud / 0.1.0 / module / server_group Manages server groups on the cloudscale.ch IaaS service | "added in version" 1.0 of cloudscale_ch.cloud" Authors: René Moser (@resmo), Denis Krienbühl (@href)cloudscale_ch.cloud.server_group (0.1.0) — module
Install with ansible-galaxy collection install cloudscale_ch.cloud:==0.1.0
collections: - name: cloudscale_ch.cloud version: 0.1.0
Create, update and remove server groups.
--- - name: Ensure server group exists cloudscale_ch.cloud.server_group: name: my-name type: anti-affinity api_token: xxxxxx
- name: Ensure server group in a specific zone cloudscale_ch.cloud.server_group: name: my-rma-group type: anti-affinity zone: lpg1 api_token: xxxxxx
- name: Ensure a server group is absent cloudscale_ch.cloud.server_group: name: my-name state: absent api_token: xxxxxx
name: description: - Name of the server group. - Either I(name) or I(uuid) is required. These options are mutually exclusive. type: str tags: description: - Tags assosiated with the server groups. Set this to C({}) to clear any tags. type: dict type: default: anti-affinity description: - Type of the server group. type: str uuid: description: - UUID of the server group. - Either I(name) or I(uuid) is required. These options are mutually exclusive. type: str zone: description: - Zone slug of the server group (e.g. C(lgp1) or C(rma1)). type: str state: choices: - present - absent default: present description: - State of the server group. type: str api_token: description: - cloudscale.ch API token. - This can also be passed in the C(CLOUDSCALE_API_TOKEN) environment variable. required: true type: str api_timeout: default: 30 description: - Timeout in seconds for calls to the cloudscale.ch API. type: int
href: description: API URL to get details about this server group returned: if available sample: https://api.cloudscale.ch/v1/server-group/cfde831a-4e87-4a75-960f-89b0148aa2cc type: str name: description: The display name of the server group returned: always sample: load balancers type: str servers: description: A list of servers that are part of the server group. returned: if available sample: [] type: list state: description: State of the server group. returned: always sample: present type: str tags: description: Tags assosiated with the server group. returned: success sample: project: my project type: dict type: description: The type the server group returned: if available sample: anti-affinity type: str uuid: description: The unique identifier for this server returned: always sample: cfde831a-4e87-4a75-960f-89b0148aa2cc type: str zone: description: The zone of the server group returned: success sample: slug: rma1 type: dict