mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
device path is optional for cbs
per https://developer.rackspace.com/docs/cloud-servers/v2/api-reference/svr-basic-operations/#post-attach-volume-to-server-servers-server-id-os-volume-attachments , device is "The name of the device, such as /dev/xvdb. Specify null for auto- assignment."
This commit is contained in:
@@ -33,7 +33,7 @@ options:
|
||||
description:
|
||||
- The device path to attach the volume to, e.g. /dev/xvde
|
||||
default: null
|
||||
required: true
|
||||
required: false
|
||||
volume:
|
||||
description:
|
||||
- Name or id of the volume to attach/detach
|
||||
@@ -189,7 +189,7 @@ def main():
|
||||
argument_spec = rax_argument_spec()
|
||||
argument_spec.update(
|
||||
dict(
|
||||
device=dict(required=True),
|
||||
device=dict(required=False),
|
||||
volume=dict(required=True),
|
||||
server=dict(required=True),
|
||||
state=dict(default='present', choices=['present', 'absent']),
|
||||
|
||||
Reference in New Issue
Block a user