Move non-stow config elsewhere

pull/28/head
Alpha Chen 11 years ago
parent 284d99bee8
commit 02d7a5749a

@ -17,22 +17,12 @@
stow_packages: stow_packages:
- git - git
- tmux - tmux
ln_packages:
tmux/.tmux.conf: .tmux.conf
tasks: tasks:
- name: clone/update dotfiles - name: clone/update dotfiles
git: repo=https://github.com/kejadlen/dotfiles.git dest=~/.dotfiles git: repo=https://github.com/kejadlen/dotfiles.git dest=~/.dotfiles
- shell: hash stow 2> /dev/null
register: stow_exists
ignore_errors: True
- name: stow files - name: stow files
command: chdir={{ ansible_env.HOME }}/.dotfiles stow --target={{ ansible_env.HOME }} --stow {{ item }} command: chdir={{ ansible_env.HOME }}/.dotfiles stow --target={{ ansible_env.HOME }} --stow {{ item }}
with_items: stow_packages with_items: stow_packages
when: stow_exists|success
- name: link files
command: ln -fs {{ ansible_env.HOME }}/.dotfiles/{{ item.key }} {{ ansible_env.HOME }}/{{ item.value }}
with_dict: ln_packages
when: stow_exists|failed
- name: link unstowable files - name: link unstowable files
file: src={{ ansible_env.HOME }}/.dotfiles/{{ item.key }} dest={{ ansible_env.HOME}}/{{ item.value }} state=link file: src={{ ansible_env.HOME }}/.dotfiles/{{ item.key }} dest={{ ansible_env.HOME}}/{{ item.value }} state=link
with_dict: with_dict:

Loading…
Cancel
Save