From a71862dd7b788a8e32395fb16cf338f2c69b262c Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Sun, 6 Mar 2022 23:01:13 +0100 Subject: [PATCH] Don't update git clones, leave that to the user --- roles/bash/tasks/main.yml | 1 + roles/git-summary/tasks/main.yml | 1 + roles/i3/tasks/main.yml | 3 ++- roles/keepass/tasks/main.yml | 1 + roles/kitty/tasks/main.yml | 1 + roles/pass/tasks/main.yml | 1 + roles/powershell/tasks/main.yml | 1 + roles/protonvpn/tasks/main.yml | 1 + roles/secrets-repo/tasks/main.yml | 1 + roles/zsh/tasks/main.yml | 2 +- 10 files changed, 11 insertions(+), 2 deletions(-) diff --git a/roles/bash/tasks/main.yml b/roles/bash/tasks/main.yml index 30f2731..e83a7fd 100644 --- a/roles/bash/tasks/main.yml +++ b/roles/bash/tasks/main.yml @@ -31,3 +31,4 @@ repo: https://github.com/magicmonty/bash-git-prompt.git dest: ~/.bash-git-prompt clone: yes + update: no diff --git a/roles/git-summary/tasks/main.yml b/roles/git-summary/tasks/main.yml index c26a2eb..2f8ce04 100644 --- a/roles/git-summary/tasks/main.yml +++ b/roles/git-summary/tasks/main.yml @@ -4,6 +4,7 @@ repo: https://gitlab.com/lordadamson/git-summary.git dest: ~/.git_clones/git-summary clone: yes + update: no - name: Symlink git-summary file: diff --git a/roles/i3/tasks/main.yml b/roles/i3/tasks/main.yml index 5c8f541..9720ea4 100644 --- a/roles/i3/tasks/main.yml +++ b/roles/i3/tasks/main.yml @@ -43,7 +43,7 @@ when: ansible_distribution == 'Debian' - name: Clone repos - git: repo={{ item.repo }} dest={{ item.dest }} clone=yes + git: repo={{ item.repo }} dest={{ item.dest }} clone=yes update=no with_items: - { repo: 'https://github.com/addy-dclxvi/i3-starterpack.git', dest: '~/.git_clones/i3-starterpack' } - { repo: 'https://github.com/vivien/i3blocks-contrib.git', dest: '~/.git_clones/i3blocks-contrib' } @@ -107,6 +107,7 @@ repo: https://github.com/vivien/i3blocks.git dest: ~/.git_clones/i3blocks clone: yes + update: no - name: Build shell: cd ~/.git_clones/i3blocks && ./autogen.sh && ./configure && make - name: Install diff --git a/roles/keepass/tasks/main.yml b/roles/keepass/tasks/main.yml index 23396a6..8e3b8cd 100644 --- a/roles/keepass/tasks/main.yml +++ b/roles/keepass/tasks/main.yml @@ -18,3 +18,4 @@ repo: git@tunuifranken.info:flyingscorpio/keepass.git dest: ~/keepass clone: yes + update: no diff --git a/roles/kitty/tasks/main.yml b/roles/kitty/tasks/main.yml index 75965a1..d603784 100644 --- a/roles/kitty/tasks/main.yml +++ b/roles/kitty/tasks/main.yml @@ -23,6 +23,7 @@ repo: https://github.com/dexpota/kitty-themes.git dest: ~/.git_clones/kitty-themes clone: yes + update: no - name: Symlink the kitty theme file: diff --git a/roles/pass/tasks/main.yml b/roles/pass/tasks/main.yml index 67a02c6..56e1470 100644 --- a/roles/pass/tasks/main.yml +++ b/roles/pass/tasks/main.yml @@ -21,6 +21,7 @@ dest: ~/.password-store version: main clone: yes + update: no - name: Copy gpg-agent.conf copy: diff --git a/roles/powershell/tasks/main.yml b/roles/powershell/tasks/main.yml index e649305..644340c 100644 --- a/roles/powershell/tasks/main.yml +++ b/roles/powershell/tasks/main.yml @@ -4,6 +4,7 @@ repo: https://aur.archlinux.org/powershell-bin.git dest: ~/builds/powershell-bin clone: yes + update: no when: ansible_distribution == 'Archlinux' - name: Make and install powershell-bin diff --git a/roles/protonvpn/tasks/main.yml b/roles/protonvpn/tasks/main.yml index 0167eee..d7f605a 100644 --- a/roles/protonvpn/tasks/main.yml +++ b/roles/protonvpn/tasks/main.yml @@ -19,6 +19,7 @@ repo: https://aur.archlinux.org/openvpn-update-systemd-resolved.git dest: ~/builds/openvpn-update-systemd-resolved clone: yes + update: no when: ansible_distribution == 'Archlinux' - name: Make and install openvpn-update-systemd-resolved diff --git a/roles/secrets-repo/tasks/main.yml b/roles/secrets-repo/tasks/main.yml index b0d0b44..96339f7 100644 --- a/roles/secrets-repo/tasks/main.yml +++ b/roles/secrets-repo/tasks/main.yml @@ -5,3 +5,4 @@ dest: ~/src/secrets version: main clone: yes + update: no diff --git a/roles/zsh/tasks/main.yml b/roles/zsh/tasks/main.yml index c26e6d2..836b275 100644 --- a/roles/zsh/tasks/main.yml +++ b/roles/zsh/tasks/main.yml @@ -30,7 +30,7 @@ - { src: 'p10k.zsh', dest: '~/.p10k.zsh' } - name: Clone repos - git: repo={{ item.repo }} dest={{ item.dest }} clone=yes version={{ item.version }} + git: repo={{ item.repo }} dest={{ item.dest }} clone=yes version={{ item.version }} update=no with_items: - { repo: 'https://github.com/softmoth/zsh-vim-mode.git', dest: '~/.git_clones/zsh-vim-mode', version: 'main' } - { repo: 'https://github.com/zsh-users/zsh-autosuggestions.git', dest: '~/.git_clones/zsh-autosuggestions', version: 'master' }