How to add a particular module to Ansible than merely doing an Ansible upgrade totally

Hi,
My current version of Ansible is 2.4.3.0

I need the module “gcp_compute_instance” which is introduced in Ansible 2.6 as per documents.

Is there a way I can just only add this package to my current Ansible version or is the only way is to upgrade Ansible totally to 2.6 version.

Regards

Ranga

Hi Ranga,

If you can then upgrade to 2.6 version so you get other 2.6 new features. If you have any restriction to upgrade from 2.4 to 2.6 then may be you can use that specific module as custom module in your playbook library directory or role library directory.

https://docs.ansible.com/ansible/2.5/user_guide/playbooks_best_practices.html#content-organization

https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html#bundling-ansible-modules-with-playbooks

Thanks
Mohan L