ansible-collection-hetzner-.../plugins
Jonas L be404ef181
feat(inventory): allow templating instances hostname (#455)
##### 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
2024-02-05 14:32:01 +01:00
..
doc_fragments refactor: add future annotations imports (#398) 2023-11-23 14:53:10 +01:00
inventory feat(inventory): allow templating instances hostname (#455) 2024-02-05 14:32:01 +01:00
module_utils chore(main): release 2.5.0 (#419) 2024-02-02 10:45:50 +01:00
modules fix!: always return iso-8601 formatted date time (#453) 2024-02-05 12:18:53 +01:00
__init__.py refactor: add plugins top level __init__ (#320) 2023-09-06 16:06:25 +02:00