From 940a46b8c9e9811f70ef269948acf9d815b7e044 Mon Sep 17 00:00:00 2001 From: sebastian Date: Mon, 21 Apr 2025 12:56:22 +0200 Subject: [PATCH] update ohmyposh --- dot_bootstrap/setup.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dot_bootstrap/setup.yml b/dot_bootstrap/setup.yml index fc53406..45b145a 100644 --- a/dot_bootstrap/setup.yml +++ b/dot_bootstrap/setup.yml @@ -39,10 +39,10 @@ name: "{{ regular_user }}" shell: /usr/bin/zsh - - name: Install OhMyPosh - ansible.builtin.command: curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin - register: result - failed_when: result.rc not in [0, 1] +# - name: Install OhMyPosh +# ansible.builtin.command: curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin +# register: result +# failed_when: result.rc not in [0, 1] - name: Create fonts directory ansible.builtin.file: @@ -60,3 +60,9 @@ mode: "0755" owner: "{{ regular_user }}" + - name: Install Oh My Posh + ansible.builtin.shell: curl -s https://ohmyposh.dev/install.sh | bash -s + args: + creates: ~/bin/oh-my-posh # Prevents rerunning if already installed + become: false # Set to true if you want to install system-wide (adjust path accordingly) +