An Ansible collection for automating IDCloudHost resources such as VPC networks, VMs, floating IPs, and block storage.
Collection path: merizrizal/idcloudhost
- Ansible
>=2.15.0(frommerizrizal/idcloudhost/meta/runtime.yml) - Python
requestsmodule on the controller yqfor themake installtarget- An IDCloudHost API key
source envrc
make install---
target:
children:
idch:
hosts:
api.idcloudhost.com:
ansible_connection: httpapi
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: trueCreate a VPC network:
- name: Create VPC network
hosts: idch
tasks:
- name: Create network
merizrizal.idcloudhost.network:
api_key: "{{ your_api_key }}"
name: "{{ your_desired_network_name }}"
location: jkt02
state: presentCreate a VM:
- name: Create VM
hosts: idch
tasks:
- name: Create VM resource
merizrizal.idcloudhost.vm:
api_key: "{{ your_api_key }}"
location: jkt02
network_name: "{{ your_desired_network_name }}"
name: "{{ your_desired_vm_name }}"
os_name: ubuntu
os_version: 24.04-lts
disks: 20
vcpu: 2
ram: 2048
username: admin
password: My4adminpass
state: presentUse ansible-doc for the full module documentation:
ansible-doc merizrizal.idcloudhost.networkansible-doc merizrizal.idcloudhost.vmansible-doc merizrizal.idcloudhost.floating_ipansible-doc merizrizal.idcloudhost.block_storageansible-doc merizrizal.idcloudhost.get_public_ip
Additional documentation is in the docs/ directory.