Overview

Date: 2026-05-11

Time: 15:19

Overview

This page documents how to provision and manage Hetzner Cloud infrastructure using FTL2, leveraging the hetzner.hcloud Ansible collection. It covers setup, a web stack example, the full module catalog, datacenter locations, and server type naming conventions.

Key Concepts

Commands and Syntax

Setup:


ansible-galaxy collection install hetzner.hcloud
export HCLOUD_TOKEN="your-api-token"
export HETZNER_SSH_PUBKEY_FILE="~/.ssh/id_ed25519.pub"

Running the web stack example:


uv run python example_hetzner_web_stack.py --check      # dry run
uv run python example_hetzner_web_stack.py               # provision
uv run python example_hetzner_web_stack.py --teardown    # teardown

Python call syntax:


await ftl.hetzner.hcloud.server(name="web01", ...)

Web stack provisions (in order): SSH key → private network + subnet (10.0.0.0/16) → firewall (SSH/HTTP/HTTPS/ICMP) → CX22 server → network attachment → Nginx install via SSH.

Relationships

Exam-Relevant Points