ansible.builtin._hcloud_server_type_facts (v2.9.25) — module

Gather infos about the Hetzner Cloud server types.

| "added in version" 2.8 of ansible.builtin"

Authors: Lukas Kaemmerling (@LKaemmerling)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.25

Description

Gather infos about your Hetzner Cloud server types.

This module was called C(hcloud_server_type_facts) before Ansible 2.9, returning C(ansible_facts) and C(hcloud_server_type_facts). Note that the M(hcloud_server_type_info) module no longer returns C(ansible_facts) and the value was renamed to C(hcloud_server_type_info)!


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather hcloud server type infos
  hcloud_server_type_info:
  register: output
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Print the gathered infos
  debug:
    var: output.hcloud_server_type_info

Inputs

    
id:
    description:
    - The ID of the server type you want to get.
    type: int

name:
    description:
    - The name of the server type you want to get.
    type: str

endpoint:
    default: https://api.hetzner.cloud/v1
    description:
    - This is the API Endpoint for the Hetzner Cloud.
    type: str

api_token:
    description:
    - This is the API Token for the Hetzner Cloud.
    required: true
    type: str

Outputs

hcloud_server_type_info:
  contains:
    cores:
      description: Number of cpu cores a server of this type will have
      returned: always
      sample: 1
      type: int
    cpu_type:
      description: Type of cpu
      returned: always
      sample: shared
      type: str
    description:
      description: Detail description of the server type
      returned: always
      sample: Falkenstein DC Park 1
      type: str
    disk:
      description: Disk size a server of this type will have in GB
      returned: always
      sample: 25
      type: int
    id:
      description: Numeric identifier of the server type
      returned: always
      sample: 1937415
      type: int
    memory:
      description: Memory a server of this type will have in GB
      returned: always
      sample: 1
      type: int
    name:
      description: Name of the server type
      returned: always
      sample: fsn1
      type: str
    storage_type:
      description: Type of server boot drive
      returned: always
      sample: local
      type: str
  description: The server type infos as list
  returned: always
  type: complex

See also