From 27f0ee2a5490403ca1944af5a71a879fafaf6413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Thu, 16 Jul 2026 10:30:24 +0200 Subject: [PATCH] fixed fastfetch/neofetch install --- .../linux/ubuntu-server/deploy_basics.yml | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/playbooks/linux/ubuntu-server/deploy_basics.yml b/playbooks/linux/ubuntu-server/deploy_basics.yml index 979062a..365d220 100644 --- a/playbooks/linux/ubuntu-server/deploy_basics.yml +++ b/playbooks/linux/ubuntu-server/deploy_basics.yml @@ -28,17 +28,20 @@ name: net-tools state: present - - name: Install neofetch or fastfetch - block: - - name: Install neofetch - ansible.builtin.apt: - name: neofetch - state: present + - name: Try to install neofetch + ansible.builtin.apt: + name: neofetch + state: present + update_cache: true + register: neofetch_install + failed_when: false + become: true - rescue: - - name: If neofetch is depricated install fastfetch - ansible.builtin.apt: - name: fastfetch - state: present + - name: Install fastfetch if neofetch is unavailable + ansible.builtin.apt: + name: fastfetch + state: present + when: neofetch_install is failed + become: true # This file was written by Ebbe Baß (umpi) - ebbe@ping-mee.de \ No newline at end of file