From 839c941f9ef1ea21504f081483a6a434834ca73f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Thu, 7 Oct 2021 11:14:29 +0200 Subject: [PATCH] Unify the "update" target --- Makefile | 2 +- playbook.yml | 2 +- user.yml | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 351eb74..1493825 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ all: | venv $(ansible) .PHONY: update update: $(ansible) - $(ansible_run) --tags update_system + $(ansible_run) --tags update .PHONY: reboot reboot: diff --git a/playbook.yml b/playbook.yml index 6c92bc2..f46345d 100644 --- a/playbook.yml +++ b/playbook.yml @@ -81,7 +81,7 @@ changed_when: false when: distro == 'archlinux' - tags: [update_system] + tags: [update] - block: - name: install sudo diff --git a/user.yml b/user.yml index 99ad131..09f7448 100644 --- a/user.yml +++ b/user.yml @@ -314,6 +314,7 @@ register: ycm_before_update changed_when: false failed_when: ycm_before_update.rc not in (0, 200) + tags: [update] - name: install vim plugins command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugInstall +qall' @@ -329,10 +330,12 @@ changed_when: false register: vim_plugin_update changed_when: vim_plugin_update.stderr != "" + tags: [update] - name: update go binaries for vim command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoUpdateBinaries +qall' changed_when: false + tags: [update] - name: get ycm version after update shell: | @@ -342,6 +345,7 @@ executable: /bin/bash register: ycm_after_update changed_when: false + tags: [update] - name: compile youcompleteme # --force-sudo is required, as the script refuses to run in a sudo @@ -358,6 +362,7 @@ (ycm_before_update.rc == 200) or (ycm_before_update.stdout != ycm_after_update.stdout) + tags: [update] tags: [vim-plugins] - block: