# How to manage different SSH keys in local Vs AWX deployment

**URL:** <https://forum.ansible.com/t/how-to-manage-different-ssh-keys-in-local-vs-awx-deployment/33060>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [May 31, 2020, 7:24pm UTC](https://forum.ansible.com/t/how-to-manage-different-ssh-keys-in-local-vs-awx-deployment/33060 "2020-05-31T19:24:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anurag\_Bhatia](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@Anurag\_Bhatia](https://forum.ansible.com/u/Anurag_Bhatia)\
**Post date:** [May 31, 2020, 7:24pm UTC](https://forum.ansible.com/t/how-to-manage-different-ssh-keys-in-local-vs-awx-deployment/33060/1 "2020-05-31T19:24:06Z")

</div>

Hello,

I was wondering how can one manage inventory seamlessly when SSH keys are referred in those?

So say I have an inventory file and it says:

[location1]  
vm1  
vm2  
vm3

[location1:vars]  
ansible\_ssh\_private\_key\_file=/specific-location/location1.key

[location2]  
vm4  
vm5  
vm6

[location2:vars]  
ansible\_ssh\_private\_key\_file=/specific-location/location2.key

Now, I want to keep this inventory in sync with Ansible AWX and hence it’s updated there via git pull. This results in AWX also trying to use these SSH keys which are not present and hence it fails to execute.  
Is there’s a way I could make AWX ignore SSH key files defined in inventory and use the credentials defined in the task?

Thanks.
