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 }}