From bff53b4c1ae58e60338d83aa9bd96924df95f2cd Mon Sep 17 00:00:00 2001 From: dimti Date: Wed, 16 Oct 2024 18:45:28 +0300 Subject: [PATCH] * correct curl options for downloading direnv release binary * hard checkout dotfiles after yadm repository fetch --- playbooks/own/yadm.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/playbooks/own/yadm.yml b/playbooks/own/yadm.yml index 8592039..6861d6b 100644 --- a/playbooks/own/yadm.yml +++ b/playbooks/own/yadm.yml @@ -4,15 +4,21 @@ - name: Install yadm become_user: root shell: | - command -v yadm || curl -fLo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm && chmod a+x /usr/local/bin/yadm + command -v yadm || curl -sfLo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm && chmod a+x /usr/local/bin/yadm - name: Install direnv become_user: root shell: | - command -v direnv || curl -sfL /usr/local/bin/direnv https://github.com/direnv/direnv/releases/download/v2.35.0/direnv.linux-amd64 && chmod a+x /usr/local/bin/direnv + command -v direnv || curl -sfLo /usr/local/bin/direnv https://github.com/direnv/direnv/releases/download/v2.35.0/direnv.linux-amd64 && chmod a+x /usr/local/bin/direnv + + - name: Install Starship + become_user: root + shell: | + command -v starship || curl -sS https://starship.rs/install.sh | sh -s -- -f - name: Clone dotfiles repo - shell: yadm clone --bootstrap https://vcs.wpstudio.ru/gitea/dotfiles.git + shell: | + yadm clone --bootstrap https://vcs.wpstudio.ru/gitea/dotfiles.git && yadm checkout ./ # For manual change: sed -i 's/#/\\$/g' ${HOME}/.config/starship.toml - name: 'Change character for non-root user'