mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-23 12:01:30 +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
|
command: mv ${HOME}/.vim_runtime/temp_dirs/undodir ${HOME}/.vim/undo
|
||||||
when: undodir.stat.exists
|
when: undodir.stat.exists
|
||||||
|
|
||||||
|
- name: vim plugins install
|
||||||
|
command: DOTFILES={{ DOTFILES }} vim -c 'PlugInstall|qa!'
|
||||||
|
|
||||||
- name: git config facts
|
- name: git config facts
|
||||||
community.general.git_config:
|
community.general.git_config:
|
||||||
name: "include.path"
|
name: "include.path"
|
||||||
|
@ -92,14 +95,14 @@
|
||||||
dest: ~/.gitignore
|
dest: ~/.gitignore
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0600'
|
mode: "0600"
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
- name: annoyances
|
- name: annoyances
|
||||||
shell: |
|
shell: |
|
||||||
## Fix scrolling in byobu
|
## Fix scrolling in byobu
|
||||||
if [[ $(uname) == "Darwin" ]]; then
|
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
|
else
|
||||||
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/share/byobu/profiles/tmux
|
||||||
fi
|
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