Creating resources in GCP using Ansible
Like VMware and AWS, it is possible to create and manage GCP resources with the help of the Ansible GCP content collection.
Prerequisite for Ansible GCP automation
Before you start, you need to ensure the prerequisites have been configured for Ansible GCP automation.
As you learned for VMware, AWS, and other platforms, you need to install the relevant Ansible content collection. In this case, you must install the google.cloud
collection if you haven’t done so yet:
[ansible@ansible Chapter-07]$ ansible-galaxy collection install google.cloud
The google.cloud
collection contains around 170 modules, roles, and other plugins to automate the GCP infrastructure and its resources.
The modules in the google.cloud
collection require the following Python libraries to be installed on the system:
$ pip install requests google-auth
Make sure you are installing the libraries into the correct path if you are using a Python virtual...