mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 16:11:49 +00:00
##### SUMMARY
Adds a `hostname` option that allow the user to pass a template to add a
prefix or use the hostvars to build the hostname.
For example:
```yml
plugin: hetzner.hcloud.hcloud
hostname: "hcloud-{{ location }}-{{ name }}"
```
OR with a hostvars_prefix:
```yml
plugin: hetzner.hcloud.hcloud
hostvars_prefix: hcloud_
hostname: "hcloud-{{ hcloud_location }}-{{ hcloud_name }}"
```
Fixes #115
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
inventory
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| hcloud.py | ||