Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define bastion host ssh settings in inventory file #145

Open
martbhell opened this issue Aug 22, 2016 · 0 comments
Open

Define bastion host ssh settings in inventory file #145

martbhell opened this issue Aug 22, 2016 · 0 comments

Comments

@martbhell
Copy link
Contributor

martbhell commented Aug 22, 2016

It would be cool if one could put the host definitions and possible bastion hosts in between as well.
One can use the variable ansible_ssh_common_args for this.
Basically for fgci-ansible this means mostly a documentation change - in the examples/hosts-example file and guides.

Maybe something like this (untested) 1:

[machine_c]
10.0.0.5

[private_machines]
machine_c

[private_machines:vars]
ansible_ssh_common_args: "-o 'ProxyCommand ssh -W %h:%p machine_b'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant