Split user and system updates
This commit is contained in:
6
Makefile
6
Makefile
@@ -9,9 +9,9 @@ ansible_run = $(activate) && ansible-playbook -e ansible_python_interpreter=/usr
|
|||||||
config: | venv $(ansible)
|
config: | venv $(ansible)
|
||||||
$(ansible_run)
|
$(ansible_run)
|
||||||
|
|
||||||
.PHONY: update
|
.PHONY: system-update
|
||||||
update: $(ansible)
|
system-update: $(ansible)
|
||||||
$(ansible_run) --tags update
|
$(ansible_run) --tags system-update
|
||||||
|
|
||||||
.PHONY: reboot
|
.PHONY: reboot
|
||||||
reboot:
|
reboot:
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
when: distro == 'archlinux'
|
when: distro == 'archlinux'
|
||||||
tags: [update, never]
|
tags: [system-update, never]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: install sudo
|
- name: install sudo
|
||||||
|
|||||||
10
user.yml
10
user.yml
@@ -314,7 +314,7 @@
|
|||||||
register: ycm_before_update
|
register: ycm_before_update
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: ycm_before_update.rc not in (0, 200)
|
failed_when: ycm_before_update.rc not in (0, 200)
|
||||||
tags: [update]
|
tags: [user-update]
|
||||||
|
|
||||||
- name: install vim plugins
|
- 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'
|
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'
|
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
|
register: vim_plugin_update
|
||||||
changed_when: vim_plugin_update.stderr != ""
|
changed_when: vim_plugin_update.stderr != ""
|
||||||
tags: [update]
|
tags: [user-update]
|
||||||
|
|
||||||
- name: update go binaries for vim
|
- 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'
|
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
|
changed_when: false
|
||||||
tags: [update]
|
tags: [user-update]
|
||||||
|
|
||||||
- name: get ycm version after update
|
- name: get ycm version after update
|
||||||
shell: |
|
shell: |
|
||||||
@@ -344,7 +344,7 @@
|
|||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
register: ycm_after_update
|
register: ycm_after_update
|
||||||
changed_when: false
|
changed_when: false
|
||||||
tags: [update]
|
tags: [user-update]
|
||||||
|
|
||||||
- name: compile youcompleteme
|
- name: compile youcompleteme
|
||||||
# --force-sudo is required, as the script refuses to run in a sudo
|
# --force-sudo is required, as the script refuses to run in a sudo
|
||||||
@@ -361,7 +361,7 @@
|
|||||||
(ycm_before_update.rc == 200)
|
(ycm_before_update.rc == 200)
|
||||||
or
|
or
|
||||||
(ycm_before_update.stdout != ycm_after_update.stdout)
|
(ycm_before_update.stdout != ycm_after_update.stdout)
|
||||||
tags: [update]
|
tags: [user-update]
|
||||||
tags: [vim-plugins]
|
tags: [vim-plugins]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
|||||||
Reference in New Issue
Block a user