From a8d74fce5b157ffacf5f675097a1f322b1346176 Mon Sep 17 00:00:00 2001 From: Raphael Dannecker Date: Mon, 6 May 2024 11:30:18 +0200 Subject: [PATCH] Install kio-package with bugfix (documents may get lost on SMB shares) --- lmn-client.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/lmn-client.yml b/lmn-client.yml index 8edd611..d2da0a4 100644 --- a/lmn-client.yml +++ b/lmn-client.yml @@ -310,12 +310,33 @@ line: DefaultTimeoutStopSec=5s insertafter: '^#DefaultTimeoutStopSec=.*' - - name: Work around libreoffice samba problem (kf5) + - name: Work around libreoffice samba problem (kf5) - reinstall libreoffice-kf5 ansible.builtin.apt: name: - libreoffice-kf5 - state: absent - purge: True + state: latest + autoremove: true + default_release: "{{ ansible_distribution_release }}-backports" + + - name: Check for old kio-package (samba problem) + command: + cmd: dpkg -l kio + register: kio_version + changed_when: False + + - name: Download kio debian package + ansible.builtin.get_url: + url: "http://livebox.pn.steinbeis.schule/kio/kio_5.103.0-1.1_amd64.deb" + dest: /tmp/kio_5.103.0-1.1_amd64.deb + use_proxy: False + register: new_kio + when: kio_version.stdout is not search('5.103.0-1.1') + + - name: Install kio package manually + shell: + cmd: dpkg -i /tmp/kio_5.103.0-1.1_amd64.deb + chdir: /tmp/ + when: new_kio.changed | default(false) #################