-
I am wondering how to build a dynamic inventory. I have a database of hosts, that gets updated, so my inventory must come from an API request. Then, I need to be able to "limit" by hostname rather than IP, but the ssh connection must be done to an IP. What I have now is;
I would like to limit by hostname, yet use |
Beta Was this translation helpful? Give feedback.
Answered by
Fizzadar
May 15, 2024
Replies: 1 comment
-
Hi @r3nor - this is indeed possible using the
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Fizzadar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @r3nor - this is indeed possible using the
ssh_hostname
data key, ie:All the available SSH options are listed here.