Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volume is unassigned if the server argument is not specified #490

Open
jooola opened this issue Apr 4, 2024 · 0 comments
Open

Volume is unassigned if the server argument is not specified #490

jooola opened this issue Apr 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jooola
Copy link
Collaborator

jooola commented Apr 4, 2024

SUMMARY

Defining a volume like so:

    - name: Create volume
      hetzner.hcloud.volume:
        name: "{{ item.name }}"
        size: 10
        location: fsn1
        labels:
          managed-by: seed
      loop: "{{ volumes }}"

And attaching it to a server during the server creation:

    - name: Create server
      hetzner.hcloud.server:
        name: "{{ item.name }}"
        server_type: cx11
        image: debian-12
        location: fsn1
        volumes: "{{ item.volumes }}"
        labels:
          managed-by: seed
      loop: "{{ servers }}"

On the next run, the volume will be unassigned from the server, as the volume args does not define the server argument.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

volume

@jooola jooola added the bug Something isn't working label Apr 4, 2024
@jooola jooola self-assigned this Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant