# Using 2 inventories. Can someone explain what I'm doing wrong?

**URL:** <https://forum.ansible.com/t/using-2-inventories-can-someone-explain-what-im-doing-wrong/26719>\
**Category:** Ansible Project\
**Created:** [February 13, 2018, 4:06pm UTC](https://forum.ansible.com/t/using-2-inventories-can-someone-explain-what-im-doing-wrong/26719 "2018-02-13T16:06:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varun\_Chopra](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@Varun\_Chopra](https://forum.ansible.com/u/Varun_Chopra)\
**Post date:** [February 13, 2018, 4:06pm UTC](https://forum.ansible.com/t/using-2-inventories-can-someone-explain-what-im-doing-wrong/26719/1 "2018-02-13T16:06:35Z")

</div>

So I plan to use a static and a dynamic inventory (gce) and this is what my play folder looks like:

`  
.  
├── ansible.cfg  
├── credentials.json  
├── gce\_vars  
│ ├── auth  
│ └── test\_servers  
├── group\_vars  
│ └── all  
├── hosts.yml  
├── inventory  
│ ├── gce.ini  
│ ├── gce.py  
│ └── hosts.yml  
└── provision.yml

3 directories, 10 files  
`

credentials.json is the json private key for my service account.

`  
[root@workstation gcloud]# cat gce\_vars/auth

---

<div class="post-metadata">

**Author:** ![slavko](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/slavko/32/8869_2.png) [@slavko](https://forum.ansible.com/u/slavko)\
**Post date:** [February 13, 2018, 5:38pm UTC](https://forum.ansible.com/t/using-2-inventories-can-someone-explain-what-im-doing-wrong/26719/2 "2018-02-13T17:38:42Z")

</div>

> Missing (or not readable) key file: ‘/workstation/gcloud/credentials.json’

what says ls -la /workstation/gcloud | grep credentials.json ?

---

<div class="post-metadata">

**Author:** ![Varun\_Chopra](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@Varun\_Chopra](https://forum.ansible.com/u/Varun_Chopra)\
**Post date:** [February 13, 2018, 7:07pm UTC](https://forum.ansible.com/t/using-2-inventories-can-someone-explain-what-im-doing-wrong/26719/3 "2018-02-13T19:07:26Z")

</div>

Thanks. I read your post and realized what I did wrong.

/workspace was my working directory and workstation’s my hostname. Mixed up the two. :l
