Files
alexandre.pires 59b2c10c43 Add Linux development station role with systemd services for code-server and OpenCode
- Implemented handlers for restarting code-server and OpenCode services.
- Created main tasks for setting up a Linux development station, including user management, package installation, and configuration.
- Added validation for OpenCode server credentials and code-server password.
- Introduced tool package management for npm, uv, and go installers.
- Developed templates for systemd service units for code-server and OpenCode.
- Included scripts for starting code-server and OpenCode with SSH agent support.
- Updated inventory and Terraform configuration to include new development host.
2026-07-10 15:44:18 +02:00

25 lines
577 B
YAML

---
- name: Reload and restart code-server
become: true
ansible.builtin.systemd:
name: code-server
state: restarted
daemon_reload: true
when:
- linux_dev_station_manage_systemd | bool
- linux_dev_station_code_server_systemd_enabled | bool
listen: Restart code-server
- name: Reload and restart opencode
become: true
ansible.builtin.systemd:
name: opencode
state: restarted
daemon_reload: true
when:
- linux_dev_station_manage_systemd | bool
- linux_dev_station_opencode_systemd_enabled | bool
listen: Restart opencode