Oleksandr Gavenko's blog
2020-10-21 00:00 History of Ansible GCE modules

Official home page seems hosts docs only starting from v2.3 and it mentions very few GCE related modules:


List of supported cloud modules.

Modules have mentions:


gce - create or terminate GCE instances.

New in version 1.4.


gce_net - create/destroy GCE networks and firewall rules

New in version 1.5.


gce_img - utilize GCE image resources.

New in version 1.9.


gcdns_record - Creates or removes resource records in Google Cloud DNS.

New in version 2.2.


gce_eip - Create or Destroy Global or Regional External IP addresses.

New in version 2.3.

All of them mention dependency on apache-libcloud. That is true up to Ansible v2.5:


Google Cloud Platform Guide.

The GCE modules all require the apache-libcloud module which you can install from pip.

Starting with Ansible v2.6 a new notice appears:


Google Cloud Platform Guide.

Ansible + Google have been working together on a set of auto-generated Ansible modules designed to consistently and comprehensively cover the entirety of the Google Cloud Platform.

The Google Cloud Platform (GCP) modules require both the requests and the google-auth libraries to be installed.

The GCP modules require both the requests and the google-auth libraries to be installed.

Old and new style modules can coexist:

While the community GCP modules are not going away, Google is investing effort into the new gcp_* modules. Google is committed to ensuring the Ansible community has a great experience with GCP and therefore recommends adopting these new modules if possible.

Still they encourage to migrate to GCE modules:

As of Ansible 2.8, we’re encouraging everyone to move from the gce module to the gcp_compute_instance module. The gcp_compute_instance module has better support for all of GCP’s features, fewer dependencies, more flexibility, and better supports GCP’s authentication systems.


Latest "Google Cloud Platform Guide".


Google Cloud's Journey to Ansible Collections (contains video presentation).

ansible, google


all / emacs / java


adb(1), admin(1), android(1), anki(1), ansible(2), blog(2), c(1), css(2), cygwin(2), driver(1), emacs(3), fs(1), git(3), google(1), gradle(1), hardware(1), hg(2), html(1), interview(13), java(3), js(3), lang(2), lighttpd(1), markdown(1), mobile(1), naming(1), oracle(1), print(1), problem(5), python(1), quiz(6), rst(2), security(3), spring(1), sql(2), srs(1), style(1), tls(2), txt(1), unit(1), utils(1), vcs(3), web(2), win(2), windows(1)