I am trying to implemet filtering based on the tags which my vm has.
unfortunately have not been able to get it to work. Can someone share an 
example here.

here is my current playbook.

- name: Locate Instance
hosts: localhost
gather_facts: false
tasks:
- name: search for google instances
gcp_compute_instance_info:
filters:
- name = webserver
- tags = webserver
# - name = test_object
zone: us-central1-a
project: concise-rampart-288609
auth_kind: serviceaccount
service_account_file: ~/Downloads/concise-rampart-288609-3d94f060ecb5.json
scopes:
- https://www.googleapis.com/auth/compute
register: instances

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/904af85e-17bb-4975-92a7-ad60eeac9c68n%40googlegroups.com.

Reply via email to