1

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: gce_pd and gcp_compute_disk. Which should I use?

1 Answer 1

1

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?

It seems you were actually talking about a module with a different name, gce_pd. That module appears to have been someone's personal project, albeit someone at Google. gcp_compute_disk is Google's official contribution to Ansible, so I still recommend you use that one.

3
  • I found gcp_pd in the Ansible documents. However, it does not appear much outside this page. Jun 18, 2019 at 23:59
  • 1
    @JohnMcGehee Well, since it was misspelled, I had no chance to find it! Jun 19, 2019 at 0:50
  • Ah, indeed sir! Spelling corrected. The gce_ prefix certainly is a bad smell. Jun 19, 2019 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.