2021-04-11 20:16:31 +02:00
|
|
|
---
|
|
|
|
- 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!'
|
2022-05-08 19:17:29 +02:00
|
|
|
|
|
|
|
- name: check gitignore migration
|
|
|
|
stat: path=${HOME}/.gitignore
|
|
|
|
register: gitignore
|
|
|
|
|
|
|
|
- name: gitignore migration
|
|
|
|
command: mkdir -p ${HOME}/.config/git && ln -s ${DOTFILES}/gitignore ${HOME}/.config/git/ignore && rm -f ~/.gitignore
|
|
|
|
when: gitignore.stat.exists
|