kowabunga.cloud.instance module – Manage Kowabunga virtual machine instances
Note
This module is part of the kowabunga.cloud collection (version 0.1.0).
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 kowabunga.cloud.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: kowabunga.cloud.instance.
Synopsis
Create, update or delete a Kowabunga virtual machine instance.
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.8
kowabunga >= 0.52.5
Parameters
Parameter |
Comments |
|---|---|
List of network adapter names (or IDs) to attach to the instance. |
|
Private API key used to connect with specified Kowabunga Kahuna endpoint. Recommended to be encrypted using Ansible Vault or SOPS. |
|
Description for the instance. |
|
HTTPS(S) URI of the Kowabunga Kahuna endpoint. Should be formatted as https://kowabunga.acme.com for example. |
|
Memory in megabytes. This attribute cannot be updated. |
|
Name for the instance. This attribute cannot be updated. |
|
Name (or ID) of the project where the instance will be created. |
|
Should the resource be present or absent. Choices:
|
|
Number of virtual CPUs. This attribute cannot be updated. |
|
List of storage volume names (or IDs) to attach to the instance. |
|
Name (or ID) of the availability zone where the instance will be created. |
Examples
- name: Create an instance
kowabunga.cloud.instance:
endpoint: https://kowabunga.acme.com
api_key: API_KEY
name: vm-01
memory: 2048
vcpus: 2
project: my-project
zone: eu-west-1a
- name: Delete an instance
kowabunga.cloud.instance:
endpoint: https://kowabunga.acme.com
api_key: API_KEY
name: vm-01
project: my-project
zone: eu-west-1a
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Dictionary describing the instance. Returned: On success when state is |
|
List of attached adapter IDs Returned: success Sample: |
|
Instance description Returned: success Sample: |
|
Instance ID Returned: success Sample: |
|
Memory in MB Returned: success Sample: |
|
Instance name Returned: success Sample: |
|
Number of virtual CPUs Returned: success Sample: |
|
List of attached volume IDs Returned: success Sample: |