Skip to content

Commit c704bd0

Browse files
author
Derek
committed
fix: replace deprecated apt-key with signed-by keyring for OnlyOffice
apt-key was removed in Ubuntu 25.04 (Plucky), breaking desktop template builds. Use modern /etc/apt/keyrings pattern instead.
1 parent 8aed3fa commit c704bd0

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

ansible/roles/developer/tasks/onlyoffice.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,23 @@
55
# OnlyOffice is a modern office suite with MS Office compatibility
66
# Installs from official OnlyOffice apt repository
77

8+
- name: Create apt keyrings directory (Ubuntu)
9+
ansible.builtin.file:
10+
path: /etc/apt/keyrings
11+
state: directory
12+
mode: "0755"
13+
when: ansible_facts['distribution'] == 'Ubuntu'
14+
815
- name: Add OnlyOffice GPG key (Ubuntu)
9-
ansible.builtin.apt_key:
16+
ansible.builtin.get_url:
1017
url: https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE
11-
state: present
18+
dest: /etc/apt/keyrings/onlyoffice.asc
19+
mode: "0644"
1220
when: ansible_facts['distribution'] == 'Ubuntu'
1321

1422
- name: Add OnlyOffice apt repository (Ubuntu)
1523
ansible.builtin.apt_repository:
16-
repo: "deb https://download.onlyoffice.com/repo/debian squeeze main"
24+
repo: "deb [signed-by=/etc/apt/keyrings/onlyoffice.asc] https://download.onlyoffice.com/repo/debian squeeze main"
1725
state: present
1826
filename: onlyoffice
1927
when: ansible_facts['distribution'] == 'Ubuntu'

0 commit comments

Comments
 (0)