File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,20 @@ jobs:
37
37
# Ensure that servers we're deploying to are known. Otherwise,
38
38
# Ansible may fail with host key verification error.
39
39
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
40
51
41
52
ansible-playbook \
42
53
-vv \
43
- -e ansible_ssh_private_key_file="${{ steps.ssh-key.outputs.uri }}" \
44
54
-e goaccess_basicauth_password="${{ secrets.GOACCESS_PASSWORD }}" \
45
55
--inventory inventories/production \
46
56
site.yml
Original file line number Diff line number Diff line change 1
1
[xsnippet]
2
- 2a02:8084:4:e480:244a:d5a5:ac59:617d
2
+ xsnippet.org
3
3
4
4
[xsnippet:vars]
5
5
ansible_user = provisioner
6
- ansible_ssh_common_args = -J
[email protected]
You can’t perform that action at this time.
0 commit comments