Help on Ansible gcp_compute_snapshot module

Hi Ansible helpers,

Could someone help on how to use the Ansible gcp_compute_snapshot module?

I created an Ansible playbook as bollow but ran into one error during the snapshot on SUSE 12.3. The error was "fatal: [patchtest03]: FAILED! => {“changed”: false, “msg”: “argument source_disk is of type <type ‘list’> and we were unable to convert to dict: <type ‘list’> cannot be converted to a dict”}
"

The more detailed Ansible gcp_compute_snapshot module can be found:

https://docs.ansible.com/ansible/latest/modules/gcp_compute_snapshot_module.html

Thanks a lot in advance.

Frank

If you read the documentation you linked to you'll see this
source_disk | It can be specified in two ways. First, you can place a dictionary with key 'name' and value of your resource's name.

Your disks is a list, and not a dict with key name as required by said documentation.