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.