Last active
June 12, 2024 01:36
-
-
Save igolka97/3243efed58fac4ad221c7e9c318cada5 to your computer and use it in GitHub Desktop.
Easiest way to use a bastion/jump host in Ansible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
vars: | |
ansible_ssh_common_args: '-J [email protected]' | |
nodes: | |
hosts: | |
node-1: | |
ansible_host: 192.168.0.10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment