From 290bcbe1722e574b46b5cee6e7b9a0b7279ba4db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Mon, 2 May 2022 20:20:24 +0200 Subject: [PATCH] Split user and system updates --- Makefile | 6 +++--- playbook.yml | 2 +- user.yml | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 44dd53c..11911ab 100644 --- a/Makefile +++ b/Makefile @@ -9,9 +9,9 @@ ansible_run = $(activate) && ansible-playbook -e ansible_python_interpreter=/usr config: | venv $(ansible) $(ansible_run) -.PHONY: update -update: $(ansible) - $(ansible_run) --tags update +.PHONY: system-update +system-update: $(ansible) + $(ansible_run) --tags system-update .PHONY: reboot reboot: diff --git a/playbook.yml b/playbook.yml index ad27ad1..47bea01 100644 --- a/playbook.yml +++ b/playbook.yml @@ -87,7 +87,7 @@ changed_when: false when: distro == 'archlinux' - tags: [update, never] + tags: [system-update, never] - block: - name: install sudo diff --git a/user.yml b/user.yml index fcd936f..2392c4a 100644 --- a/user.yml +++ b/user.yml @@ -314,7 +314,7 @@ register: ycm_before_update changed_when: false failed_when: ycm_before_update.rc not in (0, 200) - tags: [update] + tags: [user-update] - name: install vim plugins command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugInstall +qall' @@ -329,12 +329,12 @@ command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugUpdate +qall' register: vim_plugin_update changed_when: vim_plugin_update.stderr != "" - tags: [update] + tags: [user-update] - name: update go binaries for vim command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoUpdateBinaries +qall' changed_when: false - tags: [update] + tags: [user-update] - name: get ycm version after update shell: | @@ -344,7 +344,7 @@ executable: /bin/bash register: ycm_after_update changed_when: false - tags: [update] + tags: [user-update] - name: compile youcompleteme # --force-sudo is required, as the script refuses to run in a sudo @@ -361,7 +361,7 @@ (ycm_before_update.rc == 200) or (ycm_before_update.stdout != ycm_after_update.stdout) - tags: [update] + tags: [user-update] tags: [vim-plugins] - block: