# Compute.googleapis.com not enabled error while using gcp\_compute plugin

**URL:** <https://forum.ansible.com/t/compute-googleapis-com-not-enabled-error-while-using-gcp-compute-plugin/3967>\
**Category:** Get Help\
**Tags:** gcp\
**Created:** [February 21, 2024, 4:19am UTC](https://forum.ansible.com/t/compute-googleapis-com-not-enabled-error-while-using-gcp-compute-plugin/3967 "2024-02-21T04:19:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeewan.gautam](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jeewan.gautam](https://forum.ansible.com/u/jeewan.gautam)\
**Post date:** [February 21, 2024, 4:19am UTC](https://forum.ansible.com/t/compute-googleapis-com-not-enabled-error-while-using-gcp-compute-plugin/3967/1 "2024-02-21T04:19:52Z")

</div>

I am trying to use gcp\_compute plugin to execute playbook but I am updating the list of project id’s here at run time dynamically. But while running (ansible-inventory --list -i $ANSIBLE\_DIRECTORY/envs/$ENVIRONMENT/$ANSIBLE\_PLATFORM/inventory.gcp.yml) getting following error “[compute.googleapis.com](http://compute.googleapis.com) not enabled”. But I want to skip the particular project from the list if that api is not enabled rather then error. How I can achieve?

inventory.gcp.yaml:

plugin: gcp\_compute  
projects:

- test-a
- test-b

auth\_kind: application  
hostnames:

- name  
filters:
- labels.environment\_name = “development”
