|
|
@ -130,6 +130,12 @@ hcloud_volume:
|
|
|
|
type: int
|
|
|
|
type: int
|
|
|
|
returned: Always
|
|
|
|
returned: Always
|
|
|
|
sample: 1337
|
|
|
|
sample: 1337
|
|
|
|
|
|
|
|
linux_device:
|
|
|
|
|
|
|
|
description: Path to the device that contains the volume.
|
|
|
|
|
|
|
|
returned: always
|
|
|
|
|
|
|
|
type: src
|
|
|
|
|
|
|
|
sample: /dev/disk/by-id/scsi-0HC_Volume_12345
|
|
|
|
|
|
|
|
version_added: "2.10"
|
|
|
|
location:
|
|
|
|
location:
|
|
|
|
description: Location name where the volume is located at
|
|
|
|
description: Location name where the volume is located at
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
@ -178,6 +184,7 @@ class AnsibleHcloudVolume(Hcloud):
|
|
|
|
"location": to_native(self.hcloud_volume.location.name),
|
|
|
|
"location": to_native(self.hcloud_volume.location.name),
|
|
|
|
"labels": self.hcloud_volume.labels,
|
|
|
|
"labels": self.hcloud_volume.labels,
|
|
|
|
"server": to_native(server_name),
|
|
|
|
"server": to_native(server_name),
|
|
|
|
|
|
|
|
"linux_device": to_native(self.hcloud_volume.linux_device),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
def _get_volume(self):
|
|
|
|
def _get_volume(self):
|
|
|
|