Skip to content

Commit e65493a

Browse files
author
Derek
committed
feat: Replace LibreOffice with OnlyOffice as default office suite
- Add onlyoffice.yml task for OnlyOffice Desktop Editors installation - Set install_onlyoffice: true as default (better MS Office compatibility) - Keep LibreOffice as opt-in (install_libreoffice: false) - Add to main.yml with GNOME check (only install on desktop systems) OnlyOffice provides better MS Office file format compatibility which is essential for enterprise environments.
1 parent 294d07f commit e65493a

4 files changed

Lines changed: 76 additions & 12 deletions

File tree

TODO.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,25 @@
22

33
## Completed This Session
44

5-
- [x] Fix `ai/` directory management for public repos
6-
- Keep `.git/` intact for manual updates via `git -C ai pull`
7-
- `/load` uses Glob (no bash approval) to check if `ai/` exists
8-
- Updated: `.gitignore`, `.claude/commands/load.md`
9-
- Also fixed in `/projects/ai`: `attach-public.sh`, `README.md`
10-
- [x] GitHub Issue #1: D-Bus fix for ui-mode - tested and verified
11-
- Commit: `6cf453a`
12-
- [x] E2E testing on Fedora/Ubuntu with multiple tag combinations
13-
- `--all`, `--core`, `--winlike`, `--maclike`, `--rdp` all passed
14-
- `--maclike` hit GitHub API rate limit (ArgoCD) - unrelated to changes
15-
- [x] VMs reset to `initial_build` snapshot
5+
- [x] Remove dfe_ prefix from all Ansible roles
6+
- `dfe_developer``developer`
7+
- `dfe_developer_core``developer_core`
8+
- `dfe_rdp``rdp`
9+
- `dfe_system_cleanup``system_cleanup`
10+
- `dfe_vm_optimizer``vm_optimizer`
11+
- [x] Remove dfe_ prefix from all variables
12+
- `actual_user`, `user_home`, `has_gnome`, `ui_mode`, etc.
13+
- Docker variables: `docker_users`, `docker_install_desktop`, etc.
14+
- Branding variables: `branding_enabled`, `avatar_file`, `background_file`
15+
- [x] Update file paths to remove "dfe" branding
16+
- `/etc/profile.d/dfe-path.sh``/etc/profile.d/dev-path.sh`
17+
- `~/.config/dfe/``~/.config/devenv/`
18+
- `dfe-vaapi-check*``vaapi-check*`
19+
- `dconf-dfe-defaults-*``dconf-defaults-*`
20+
- [x] Fix: Add dconf database directory creation (Ubuntu fix)
21+
- [x] Test on Fedora 42 and Ubuntu 24.04 (both passed)
22+
- [x] Commit: `3425010` - refactor: remove dfe_ prefix from roles and variables
23+
- [x] Reset VMs to `initial_build` snapshot
1624

1725
## Immediate Tasks
1826

ansible/roles/developer/defaults/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@ avatar_file: "user-avatar.png"
4040
# Only deployed if branding_enabled is true
4141
background_file: "default-background.svg"
4242

43-
# Install LibreOffice (opt-in, disabled by default)
43+
# ============================================================================
44+
# OFFICE SUITE
45+
# ============================================================================
46+
# OnlyOffice is the default (better MS Office compatibility)
47+
# LibreOffice is opt-in for users who prefer it
48+
install_onlyoffice: true
4449
install_libreoffice: false

ansible/roles/developer/tasks/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@
140140
tags: ['data']
141141
tags: ['data']
142142

143+
- name: Install OnlyOffice Desktop Editors
144+
ansible.builtin.include_tasks:
145+
file: onlyoffice.yml
146+
apply:
147+
tags: ['onlyoffice']
148+
tags: ['onlyoffice']
149+
when:
150+
- has_gnome | default(false)
151+
- install_onlyoffice | default(true)
152+
143153
- name: Install VS Code
144154
ansible.builtin.include_tasks:
145155
file: vscode.yml
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
# OnlyOffice Desktop Editors installation
3+
# https://www.onlyoffice.com/desktop.aspx
4+
#
5+
# OnlyOffice is a modern office suite with MS Office compatibility
6+
# Installs from official OnlyOffice apt repository
7+
8+
- name: Add OnlyOffice GPG key (Ubuntu)
9+
ansible.builtin.apt_key:
10+
url: https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE
11+
state: present
12+
when: ansible_facts['distribution'] == 'Ubuntu'
13+
14+
- name: Add OnlyOffice apt repository (Ubuntu)
15+
ansible.builtin.apt_repository:
16+
repo: "deb https://download.onlyoffice.com/repo/debian squeeze main"
17+
state: present
18+
filename: onlyoffice
19+
when: ansible_facts['distribution'] == 'Ubuntu'
20+
21+
- name: Install OnlyOffice Desktop Editors (Ubuntu)
22+
ansible.builtin.apt:
23+
name: onlyoffice-desktopeditors
24+
state: present
25+
update_cache: true
26+
when: ansible_facts['distribution'] == 'Ubuntu'
27+
28+
- name: Add OnlyOffice rpm repository (Fedora)
29+
ansible.builtin.yum_repository:
30+
name: onlyoffice
31+
description: OnlyOffice Desktop Editors
32+
baseurl: https://download.onlyoffice.com/repo/centos/main/noarch/
33+
gpgcheck: true
34+
gpgkey: https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE
35+
when: ansible_facts['distribution'] == 'Fedora'
36+
37+
- name: Install OnlyOffice Desktop Editors (Fedora)
38+
ansible.builtin.dnf:
39+
name: onlyoffice-desktopeditors
40+
state: present
41+
when: ansible_facts['distribution'] == 'Fedora'

0 commit comments

Comments
 (0)