diff --git a/changelogs/fragments/volume-attachment-automount.yml b/changelogs/fragments/volume-attachment-automount.yml new file mode 100644 index 0000000..c019af0 --- /dev/null +++ b/changelogs/fragments/volume-attachment-automount.yml @@ -0,0 +1,2 @@ +trivial: + volume_attachment: Change `automount` default value from `null` to `False` diff --git a/plugins/modules/volume_attachment.py b/plugins/modules/volume_attachment.py index 3e8dddb..ad5a70f 100644 --- a/plugins/modules/volume_attachment.py +++ b/plugins/modules/volume_attachment.py @@ -34,6 +34,7 @@ options: description: - Automatically mount the Volume in the Server. type: bool + default: False state: description: - State of the Volume. @@ -175,7 +176,7 @@ class AnsibleHCloudVolumeAttachment(AnsibleHCloud): argument_spec=dict( volume={"type": "str", "required": True}, server={"type": "str"}, - automount={"type": "bool"}, + automount={"type": "bool", "default": False}, state={ "choices": ["present", "absent"], "default": "present",