Ansible collection for managing CubePath Cloud infrastructure resources including VPS, baremetal servers, networks, DNS, load balancers, CDN, and more.
ansible-galaxy collection install cubepathinc.cloudOr install from source:
ansible-galaxy collection install git+https://github.com/CubePathInc/cubepath.ansible.gitAll modules require a CubePath API token. You can provide it via:
- Module parameter:
api_token - Environment variable:
CUBEPATH_API_TOKEN
cubepathinc.cloud.vps- Create/destroy VPS instancescubepathinc.cloud.vps_info- List VPS instancescubepathinc.cloud.vps_power- Manage VPS power statecubepathinc.cloud.vps_action- Resize, reinstall, change password, update VPScubepathinc.cloud.baremetal- Deploy baremetal serverscubepathinc.cloud.baremetal_info- List baremetal serverscubepathinc.cloud.baremetal_power- Manage baremetal power statecubepathinc.cloud.baremetal_action- Reinstall, rescue, reset BMC, update baremetal
cubepathinc.cloud.network- Manage private networkscubepathinc.cloud.network_info- List networkscubepathinc.cloud.floating_ip- Manage floating IP lifecycle and assignmentscubepathinc.cloud.floating_ip_info- List floating IPs
cubepathinc.cloud.dns_zone- Manage DNS zonescubepathinc.cloud.dns_zone_info- List DNS zonescubepathinc.cloud.dns_record- Manage DNS recordscubepathinc.cloud.dns_record_info- List DNS records
cubepathinc.cloud.loadbalancer- Manage load balancerscubepathinc.cloud.loadbalancer_info- List load balancerscubepathinc.cloud.loadbalancer_listener- Manage listenerscubepathinc.cloud.loadbalancer_target- Manage targetscubepathinc.cloud.loadbalancer_health_check- Configure health checks
cubepathinc.cloud.cdn_zone- Manage CDN zonescubepathinc.cloud.cdn_zone_info- List CDN zonescubepathinc.cloud.cdn_origin- Manage CDN originscubepathinc.cloud.cdn_rule- Manage CDN edge rulescubepathinc.cloud.cdn_waf_rule- Manage CDN WAF rules
cubepathinc.cloud.project- Manage projectscubepathinc.cloud.project_info- List projectscubepathinc.cloud.ssh_key- Manage SSH keyscubepathinc.cloud.ssh_key_info- List SSH keys
cubepathinc.cloud.plan_info- List VPS planscubepathinc.cloud.template_info- List OS templatescubepathinc.cloud.location_info- List locationscubepathinc.cloud.ddos_attack_info- List DDoS attacks
cubepathinc.cloud.cubepath- Dynamic inventory plugin
- name: Deploy infrastructure
hosts: localhost
tasks:
- name: Create project
cubepathinc.cloud.project:
api_token: "{{ cubepath_token }}"
name: production
state: present
register: project
- name: Create VPS
cubepathinc.cloud.vps:
api_token: "{{ cubepath_token }}"
name: web-01
project_id: "{{ project.project.id }}"
plan: gp.nano
template: debian-13
location: eu-bcn-1
ssh_keys:
- deploy-key
state: presentGPL-3.0-or-later