Send data from Google Compute Engine to Google Pub/Sub using Ansible

I would like to send data from Google vm instance to Google Pub/Sub using Ansible.

Ansible playbook

The executable path is different from the module location path. So I worked with virtualenv and it’s ok now.