ngine_io / ngine_io.cloudstack / 2.3.0 / module / cs_pod Manages pods on Apache CloudStack based clouds. | "added in version" 0.1.0 of ngine_io.cloudstack" Authors: René Moser (@resmo)ngine_io.cloudstack.cs_pod (2.3.0) — module
Install with ansible-galaxy collection install ngine_io.cloudstack:==2.3.0
collections: - name: ngine_io.cloudstack version: 2.3.0
Create, update, delete pods.
- name: Ensure a pod is present ngine_io.cloudstack.cs_pod: name: pod1 zone: ch-zrh-ix-01 start_ip: 10.100.10.101 gateway: 10.100.10.1 netmask: 255.255.255.0
- name: Ensure a pod is disabled ngine_io.cloudstack.cs_pod: name: pod1 zone: ch-zrh-ix-01 state: disabled
- name: Ensure a pod is enabled ngine_io.cloudstack.cs_pod: name: pod1 zone: ch-zrh-ix-01 state: enabled
- name: Ensure a pod is absent ngine_io.cloudstack.cs_pod: name: pod1 zone: ch-zrh-ix-01 state: absent
id: description: - uuid of the existing pod. type: str name: description: - Name of the pod. required: true type: str zone: description: - Name of the zone in which the pod belongs to. required: true type: str state: choices: - present - enabled - disabled - absent default: present description: - State of the pod. type: str end_ip: description: - Ending IP address for the Pod. 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 gateway: description: - Gateway for the Pod. - Required on I(state=present) type: str netmask: description: - Netmask for the Pod. - Required on I(state=present) type: str start_ip: description: - Starting IP address for the Pod. - Required on I(state=present) 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
allocation_state: description: State of the pod. returned: success sample: Enabled type: str end_ip: description: Ending IP of the pod. returned: success sample: 10.100.1.254 type: str gateway: description: Gateway of the pod. returned: success sample: 10.100.1.1 type: str id: description: UUID of the pod. returned: success sample: 04589590-ac63-4ffc-93f5-b698b8ac38b6 type: str name: description: Name of the pod. returned: success sample: pod01 type: str netmask: description: Netmask of the pod. returned: success sample: 255.255.255.0 type: str start_ip: description: Starting IP of the pod. returned: success sample: 10.100.1.101 type: str zone: description: Name of zone the pod is in. returned: success sample: ch-gva-2 type: str