Ansible collection for the Polycrate API. Based on the official ansible-collections/collection_template.
FQCN: ayedo.polycrate
Modules talk to /api/v1/hosts/ and catalog endpoints. They do not call Hetzner, OpenStack, or other IaaS APIs.
GitHub and Ansible Galaxy publishing are out of band.
ansible-galaxy collection install ./ayedo.polycrateSame as polycrate-sdk: Authorization: Bearer <token>.
| Parameter | Environment |
|---|---|
endpoint |
POLYCRATE_ENDPOINT |
token |
POLYCRATE_TOKEN |
| Module | API |
|---|---|
ayedo.polycrate.host |
create / PATCH / DELETE Host |
ayedo.polycrate.product_info |
GET /api/v1/products/{id}/ |
ayedo.polycrate.provider_info |
GET /api/v1/providers/{id}/ |
ayedo.polycrate.pop_info |
GET /api/v1/pops/{id}/ |
- hosts: localhost
gather_facts: false
tasks:
- name: Ensure a generic VM
ayedo.polycrate.host:
name: web-1
workspace_id: "{{ workspace_id }}"
product_id: "{{ host_product_id }}"
kind: vm
role: genericansible-test sanity --docker -v
ansible-test units --docker -v