File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,20 @@ jobs:
3737 # Ensure that servers we're deploying to are known. Otherwise,
3838 # Ansible may fail with host key verification error.
3939 mkdir -p ~/.ssh && echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
40+ cat <<EOF > ~/.ssh/config
41+ Host _jumphost
42+ User bunny
43+ HostName hoth.kalnytskyi.com
44+ IdentityFile ${{ steps.ssh-key.outputs.uri }}
45+
46+ Host xsnippet.org
47+ HostName 2a02:8084:4:e480:244a:d5a5:ac59:617d
48+ ProxyJump _jumphost
49+ IdentityFile ${{ steps.ssh-key.outputs.uri }}
50+ EOF
4051
4152 ansible-playbook \
4253 -vv \
43- -e ansible_ssh_private_key_file="${{ steps.ssh-key.outputs.uri }}" \
4454 -e goaccess_basicauth_password="${{ secrets.GOACCESS_PASSWORD }}" \
4555 --inventory inventories/production \
4656 site.yml
Original file line number Diff line number Diff line change 11[xsnippet]
2- 2a02:8084:4:e480:244a:d5a5:ac59:617d
2+ xsnippet.org
33
44[xsnippet:vars]
55ansible_user = provisioner
6- ansible_ssh_common_args = -J
[email protected]
You can’t perform that action at this time.
0 commit comments