hcloud-ansible icon indicating copy to clipboard operation
hcloud-ansible copied to clipboard

Ansible modules and inventory for Hetzner Cloud

Archived
As I don't use this project anymore myself, I decided to archive it.

Hetzner Cloud - Ansible

GitHub release Build Status

The Hetzner Cloud (hcloud) ansible modules and inventory are used to interact with the resources supported by Hetzner Cloud. The modules and inventory need to be configured with an Hetzner Cloud API token before they can be used.

Inventory Example Usage

# ping all hosts in Hetzner Cloud Project
ansible -i hcloud_inventory all -m ping

# ping all hosts with cx11 server type
ansible -i hcloud_inventory cx11 -m ping

Modules

  • hcloud_server - Manage Hetzner Cloud Servers
  • hcloud_ssh_key - Manage Hetzner Cloud SSH Keys
  • hcloud_floating_ip - Manage Hetzner Cloud Floating IPs

Installation

Download the binaries for your OS from the releases page and place them into your Ansible library.

Licence

MIT license