ansible / ansible.builtin / v2.9.18 / module / cs_instancegroup Manages instance groups on Apache CloudStack based clouds. | "added in version" 2.0 of ansible.builtin" Authors: René Moser (@resmo) stableinterface | supported by communityansible.builtin.cs_instancegroup (v2.9.18) — module
pip
Install with pip install ansible==2.9.18
Create and remove instance groups.
- name: Create an instance group cs_instancegroup: name: loadbalancers delegate_to: localhost
- name: Remove an instance group cs_instancegroup: name: loadbalancers state: absent delegate_to: localhost
name: description: - Name of the instance group. required: true type: str state: choices: - present - absent default: present description: - State of the instance group. type: str domain: description: - Domain the instance group is related to. type: str account: description: - Account the instance group is related to. type: str api_key: description: - API key of the CloudStack API. - If not given, the C(CLOUDSTACK_KEY) env variable is considered. required: true type: str api_url: description: - URL of the CloudStack API e.g. https://cloud.example.com/client/api. - If not given, the C(CLOUDSTACK_ENDPOINT) env variable is considered. required: true type: str project: description: - Project the instance group is related to. type: str api_secret: description: - Secret key of the CloudStack API. - If not set, the C(CLOUDSTACK_SECRET) env variable is considered. required: true type: str api_timeout: default: 10 description: - HTTP timeout in seconds. - If not given, the C(CLOUDSTACK_TIMEOUT) env variable is considered. type: int api_http_method: choices: - get - post default: get description: - HTTP method used to query the API endpoint. - If not given, the C(CLOUDSTACK_METHOD) env variable is considered. type: str api_verify_ssl_cert: description: - Verify CA authority cert file. - If not given, the C(CLOUDSTACK_VERIFY) env variable is considered. type: str
account: description: Account the instance group is related to. returned: success sample: example account type: str created: description: Date when the instance group was created. returned: success sample: 2015-05-03T15:05:51+0200 type: str domain: description: Domain the instance group is related to. returned: success sample: example domain type: str id: description: UUID of the instance group. returned: success sample: 04589590-ac63-4ffc-93f5-b698b8ac38b6 type: str name: description: Name of the instance group. returned: success sample: webservers type: str project: description: Project the instance group is related to. returned: success sample: example project type: str