[meta] Only stow OS X stuff if on OS X

pull/28/head
Alpha Chen 10 years ago
parent 0b23a0e10a
commit 0fd9787299

@ -12,12 +12,17 @@
depth: 1
dest: ~/.dotfiles
recursive: yes
# force: no
force: no
- command: >
chdir={{ ansible_env.HOME }}/.dotfiles
stow --stow --target={{ ansible_env.HOME }} {{ item }}
with_items: stow
tags: stow
- command: >
chdir={{ ansible_env.HOME }}/.dotfiles
stow --stow --target={{ ansible_env.HOME }} osx
when: ansible_distribution == "MacOSX"
tags: stow
- file:
src: "{{ ansible_env.HOME }}/.dotfiles/{{ item.key }}"
dest: "{{ ansible_env.HOME}}/{{ item.value }}"

@ -5,6 +5,5 @@ stow:
- ruby
- tmux
- vim
- osx
ln:
git/.gitignore: .gitignore

Loading…
Cancel
Save