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:
parent
9ac97f0af7
commit
37821a77ab
|
@ -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
|
||||
|
|
17
ansible/playbooks/update.yml
Normal file
17
ansible/playbooks/update.yml
Normal 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!'
|
Loading…
Reference in New Issue
Block a user