|
|
|
@ -19,10 +19,16 @@
|
|
|
|
|
- stow
|
|
|
|
|
- hosts: all
|
|
|
|
|
gather_facts: false
|
|
|
|
|
vars:
|
|
|
|
|
stow_packages:
|
|
|
|
|
- git
|
|
|
|
|
tasks:
|
|
|
|
|
- name: clone dotfiles
|
|
|
|
|
git: repo=https://github.com/kejadlen/dotfiles.git dest=~/.dotfiles
|
|
|
|
|
- name: stow files
|
|
|
|
|
command: stow --target={{ ansible_env.HOME }} --stow {{ ansible_env.HOME }}/.dotfiles/{{ item }}
|
|
|
|
|
with_items:
|
|
|
|
|
- git
|
|
|
|
|
command: chdir={{ ansible_env.HOME }}/.dotfiles stow --target={{ ansible_env.HOME }} --stow {{ item }}
|
|
|
|
|
with_items: stow_packages
|
|
|
|
|
- name: link unstowable files
|
|
|
|
|
file: src={{ ansible_env.HOME }}/.dotfiles/{{ item.key }} dest={{ ansible_env.HOME}}/{{ item.value }} state=link
|
|
|
|
|
with_dict:
|
|
|
|
|
git/.gitignore: .gitignore
|
|
|
|
|