From 9b9cb71dd1df32f6712cb25eaa204bdcc27291ea Mon Sep 17 00:00:00 2001 From: sebastian Date: Fri, 13 Jun 2025 15:23:30 +0200 Subject: [PATCH] Feh symlinks --- dot_bootstrap/setup.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/dot_bootstrap/setup.yml b/dot_bootstrap/setup.yml index 3c024b8..8f6e630 100644 --- a/dot_bootstrap/setup.yml +++ b/dot_bootstrap/setup.yml @@ -40,20 +40,25 @@ - mpv ignore_errors: true - # Create Symlinks for feh + - name: Find path to feh binary + ansible.builtin.command: which feh + register: feh_path + changed_when: false + failed_when: feh_path.rc != 0 - - name: Creating a symlink ffeh + - name: Create symlink to feh as ffeh ansible.builtin.file: - src: "$(which feh)" - dest: "~/.local/bin/ffeh" + src: "{{ feh_path.stdout }}" + dest: "~{{ regular_user }}/.local/bin/ffeh" state: link - - name: Creating a symlink ffehr + - name: Create symlink to feh as ffehr ansible.builtin.file: - src: "$(which feh)" - dest: "~/.local/bin/ffehr" + src: "{{ feh_path.stdout }}" + dest: "~{{ regular_user }}/.local/bin/ffehr" state: link + - name: Install additionall packages... ansible.builtin.package: name: