1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-26 21:31:31 +01:00

ansible: add update.yml to perform updates, add vim install step

This commit is contained in:
bretello 2021-04-11 20:16:31 +02:00
parent 9ac97f0af7
commit 37821a77ab
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
2 changed files with 22 additions and 2 deletions

View File

@ -71,6 +71,9 @@
command: mv ${HOME}/.vim_runtime/temp_dirs/undodir ${HOME}/.vim/undo
when: undodir.stat.exists
- name: vim plugins install
command: DOTFILES={{ DOTFILES }} vim -c 'PlugInstall|qa!'
- name: git config facts
community.general.git_config:
name: "include.path"
@ -92,14 +95,14 @@
dest: ~/.gitignore
owner: root
group: root
mode: '0600'
mode: "0600"
backup: yes
- name: annoyances
shell: |
## Fix scrolling in byobu
if [[ $(uname) == "Darwin" ]]; then
sed -i '' 's/set -g terminal-overrides/#set -g terminal-overrides/' /usr/share/byobu/profiles/tmux
sed -i '' 's/set -g terminal-overrides/#set -g terminal-overrides/' /usr/local/share/byobu/profiles/tmux
else
sed -i 's/set -g terminal-overrides/#set -g terminal-overrides/' /usr/share/byobu/profiles/tmux
fi

View File

@ -0,0 +1,17 @@
---
- hosts: all
become: true
vars:
DOTFILES: "$HOME/.dotfiles"
tasks:
- name: dotfiles
ansible.builtin.command: git pull --rebase --autostash
args:
chdir: "{{ DOTFILES }}"
- name: antibody
command: antibody update
- name: vim
ansible.builtin.shell: DOTFILES={{DOTFILES}} vim -c 'PlugUpdate|qa!'