hetzner.hcloud.hcloud_route – Create and delete cloud routes on the Hetzner Cloud.
This plugin is part of the hetzner.hcloud collection (version 1.6.0).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install hetzner.hcloud.
To use it in a playbook, specify:
The below requirements are needed on the host that executes this module.
hcloud-python >= 1.0.0
hcloud-python >= 1.3.0
- name: Create a basic route hcloud_route: network: my-network destination: 10.100.1.0/24 gateway: 10.0.1.1 state: present - name: Ensure the route is absent hcloud_route: network: my-network destination: 10.100.1.0/24 gateway: 10.0.1.1 state: absent
Common return values are documented here, the following are the fields unique to this module: