How do I decide when to use Ansible gcp_pd vs. gcp_compute_disk?

John McGehee asked:

I want to create a standard persistent disk, format and mount it on multiple VM instances.

There are two Ansible tasks that create persistent disks: gcp_pd and gcp_compute_disk. Which should I use?

My answer:


I would say that you should use gcp_compute_disk, based simply on the fact that it actually exists. A quick search does not show that the other is part of Ansible, nor was I able to find a third party module with that name; perhaps it is a local module provided internally at your company?


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.