Skip to content

Commit

Permalink
Allow volume naming without server name (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
yokaishogun authored Nov 8, 2023
1 parent da716ab commit b92ee00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ hcloud__server_firewalls:
hcloud__server_user_data: ""
hcloud__server_volumes: []
# hcloud__server_volumes:
# - name: vol1
# - name: "{{ inventory_hostname_short }}-vol1"
# size: 10

hcloud__server_force: false
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

- name: Ensure volume is created and formatted
hetzner.hcloud.hcloud_volume:
name: "{{ hcloud__server_name }}-{{ item.name }}"
name: "{{ item.name }}"
server: "{{ hcloud__server_name }}"
automount: true
format: "{{ item.format | default('ext4') }}"
Expand Down

0 comments on commit b92ee00

Please sign in to comment.