Project

General

Profile

Updating Code Server

Ansible
05/21/2025

Updating Code Server

Use the following steps to deploy a Code Server update.

Update Version

Go to https://github.com/coder/code-server/releases to determine the latest version. Edit the code_server_version variable located in inventory/ansible/group_vars/code_server/main.yml to the version of Code Server to update to.

code_server_version: 4.100.2

Commit the changes.

Login to an Ansible Control Node

Login to an Ansible control node and set the following to prep the playbook execution.

cd /ansible/dev/ansible
source /opt/python_3.12/bin/activate
INV=inventory/ansible/inventory.ini

Create a Snapshot

Create a virtual machine snapshot.

ansible-playbook -i $INV -k playbooks/vms/create_vm_snapshot.yml -l ansible-0

Deploy the Update

Execute the following to deploy the new version.

ansible-playbook -i $INV -k playbooks/deploy_code_server.yml

Verify Update

Verify the new version has been installed successfully by opening, https://code.refol.us/ in a browser. Click the elipsis (…) from the menu, help > about to display the version information.

Delete the Virtual Machine Snapshot

Delete the snapshot after verifying a successful deployment.

ansible-playbook -i $INV -k playbooks/vms/remove_vm_snapshot.yml

Files