Molecule: Deprecation Warning: GCE module will be deprecated in 2.12

Created on 23 May 2019  路  3Comments  路  Source: ansible-community/molecule

Issue Type

  • Deprecation warning

Molecule and Ansible details

ansible --version && molecule --version
ansible 2.8.0
molecule, version 2.20.1

Molecule installation method: pip
Ansible installation method: pip

Actual Behaviour

The GCE module will be deprecated in ansible 2.12.

The recommendation is to use module gcp_compute_instance.

This must be reflected in google driver cookiecutter template I guess (https://github.com/ansible/molecule/tree/master/molecule/cookiecutter/scenario/driver/gce).

Using recommended modules will make playbooks a little more complex, for example you need to also use gcp_compute_address to create external address for VM. I am already using this in MongoDB role, where I test 3 node cluster with multiple disks, because it gives me more options.

I can provide some examples if you want. From first glance, there might be needed more variables from user in platforms section.

This is not yet big priority, because we still have a lot of time until ansible 2.12.

bug test

All 3 comments

@Lirt the new module was introduced in ansible 2.5 which means that we either need to delay this until we frop support for 2.5, or to comeup with an ugly-trick which used different modules based on ansible version.

I will assign this ticket to you, hoping that you could create PR to address it.

If there is no other alternative for the GCE module, the use of Molecule in the Google Cloud is not possible...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tadeboro picture tadeboro  路  4Comments

ssbarnea picture ssbarnea  路  4Comments

mielas picture mielas  路  5Comments

r0ckyte picture r0ckyte  路  5Comments

asg1612 picture asg1612  路  4Comments