From 8f04d77d5805c04cd9451f78ae3a3057d5b95676 Mon Sep 17 00:00:00 2001 From: Raphael Dannecker Date: Wed, 17 Jun 2026 11:03:03 +0200 Subject: [PATCH] Prevent ansible playbook abort when called in non-school environment --- roles/custom/fvs/tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/custom/fvs/tasks/main.yml b/roles/custom/fvs/tasks/main.yml index 8f7c49c..37ad38a 100644 --- a/roles/custom/fvs/tasks/main.yml +++ b/roles/custom/fvs/tasks/main.yml @@ -12,6 +12,7 @@ question: msttcorefonts/dlurl value: "{{ mirror_msfonts }}" vtype: string + ignore_errors: true when: mirror_msfonts is defined and mirror_msfonts | length > 0 - name: Install desktop EDU packages and some more @@ -235,6 +236,8 @@ dest: /usr/lib/x86_64-linux-gnu/libdvdcss.so.2.2.0 mode: '0644' use_proxy: false + register: download_dvdcss_result + ignore_errors: true when: mirror_dvdcss is defined and mirror_dvdcss | length > 0 - name: Link library so name @@ -242,7 +245,7 @@ src: libdvdcss.so.2.2.0 dest: /usr/lib/x86_64-linux-gnu/libdvdcss.so.2 state: link - when: mirror_dvdcss is defined and mirror_dvdcss | length > 0 + when: mirror_dvdcss is defined and mirror_dvdcss | length > 0 and download_dvdcss_result.changed - name: Patch sddm login screen to show hostname ansible.builtin.blockinfile: