# Help on Ansible gcp\_compute\_snapshot module

**URL:** <https://forum.ansible.com/t/help-on-ansible-gcp-compute-snapshot-module/32407>\
**Category:** Ansible Project\
**Created:** [March 6, 2020, 2:52pm UTC](https://forum.ansible.com/t/help-on-ansible-gcp-compute-snapshot-module/32407 "2020-03-06T14:52:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FRANK\_L](https://avatars.discourse-cdn.com/v4/letter/f/839c29/32.png) [@FRANK\_L](https://forum.ansible.com/u/FRANK_L)\
**Post date:** [March 6, 2020, 2:52pm UTC](https://forum.ansible.com/t/help-on-ansible-gcp-compute-snapshot-module/32407/1 "2020-03-06T14:52:55Z")

</div>

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](https://docs.ansible.com/ansible/latest/modules/gcp_compute_snapshot_module.html)

Thanks a lot in advance.

Frank

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [March 8, 2020, 1:55pm UTC](https://forum.ansible.com/t/help-on-ansible-gcp-compute-snapshot-module/32407/2 "2020-03-08T13:55:37Z")

</div>

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.
