Skip to content

Instantly share code, notes, and snippets.

@igolka97
Last active June 12, 2024 01:36
Show Gist options
  • Save igolka97/3243efed58fac4ad221c7e9c318cada5 to your computer and use it in GitHub Desktop.
Save igolka97/3243efed58fac4ad221c7e9c318cada5 to your computer and use it in GitHub Desktop.
Easiest way to use a bastion/jump host in Ansible
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