forked from ansible-collections/hetzner.hcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(inventory): allow templating instances hostname (ansible-collect…
…ions#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 ansible-collections#115 ##### ISSUE TYPE - Feature Pull Request ##### COMPONENT NAME inventory
- Loading branch information
Showing
2 changed files
with
64 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
minor_changes: | ||
- inventory - Add `hostname` option used to template the hostname of the instances. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters