Ansible playbook to download & install VS Code Server on a remote machine (without internet connection / offline)
By default VS Code installs its server component on a remote server automatically when using the SSH extension. This does not work when working in an air gapped environment or when working offline.
This playbook downloads the VS Code Server on a remote machine. It also extracts the tarball to the correct location. After running this playbook you can connect to the remote machine using the VS Code SSH extension.
- you might need to adjust
vscode_commit_sha
to your commit SHA- you can get the correct commit SHA by openeing help > About > Commit
- you might need to
vscode_arch
to the architecture of the remote machine- e.g. x64 or arm64
You can run the playbook as follows:
`ansible-playbook install_code.yml -i localhost,
(replace localhost
with your desired remote machine)
You'll still need to install any extensions manually. This can be done by downloading .vsix files and installing them manually on the remote machine.