From ef9f590d64d4a16ba9ef4584e0d8002da558f65c Mon Sep 17 00:00:00 2001 From: jorge-perez Date: Fri, 26 Jan 2024 09:22:31 -0600 Subject: [PATCH] Updated ssh config to use more than /24 network Signed-off-by: jorge-perez --- ansible/playbooks/infra-deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/playbooks/infra-deploy.yaml b/ansible/playbooks/infra-deploy.yaml index 48bf7590..4e7388c0 100644 --- a/ansible/playbooks/infra-deploy.yaml +++ b/ansible/playbooks/infra-deploy.yaml @@ -345,7 +345,7 @@ - name: Create ssh-config ansible.builtin.copy: content: | - Host 172.31.0.* + Host 172.31.* ProxyJump {{ bastion_ip }} User {{ os_bastion_user }} IdentityFile {{ lookup('env', 'HOME') }}/.ssh/{{ os_keypair_name }}.key @@ -516,7 +516,7 @@ - name: Copy ssh-config to jump host ansible.builtin.copy: content: | - Host 172.31.0.* + Host 172.31.* User {{ os_bastion_user }} Host * IdentityFile /home/{{ os_bastion_user }}/.ssh/{{ ansible_ssh_private_key_file | basename }}