Open czocher opened 8 months ago
Hi @czocher , thanks for the suggestion!
If you mean that parsing all inventory file and then output to a single ssh_config
file,
I'm thinking about a problem that different environments' inventory files might have the same host name.
For an example,
dev.yaml
[foo]
bar ansible_host=192.168.0.1
prod.yaml
also has the same host name
[foo]
bar ansible_host=192.168.1.1
then the output bar
host would be conflicted.
Another way is, parsing all inventory and then output to different ssh_config
files according to the input file name.
But this would need to specify several output file name which doesn't seem very convenient for this tool.
Anyway, I'm still thinking how to implement it, and any suggestions are very welcome!
That's true, we have a couple of options for this problem:
Thanks for your amazing work!
I'm thinking of adding a small change to the arguments - instead of a single inventory file some projects use a directory with multiple files per environment (dev, prod, test). It would be nice to be able to parse all the
yml
,yaml
ortoml
files in that directory to create thessh_config
file.What do you think about this idea?
This of course can be replaced with something like:
but having this built-in would probably be beneficial.