[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 depth: 1
dest: ~/.dotfiles dest: ~/.dotfiles
recursive: yes recursive: yes
# force: no force: no
- command: > - command: >
chdir={{ ansible_env.HOME }}/.dotfiles chdir={{ ansible_env.HOME }}/.dotfiles
stow --stow --target={{ ansible_env.HOME }} {{ item }} stow --stow --target={{ ansible_env.HOME }} {{ item }}
with_items: stow with_items: stow
tags: stow tags: stow
- command: >
chdir={{ ansible_env.HOME }}/.dotfiles
stow --stow --target={{ ansible_env.HOME }} osx
when: ansible_distribution == "MacOSX"
tags: stow
- file: - file:
src: "{{ ansible_env.HOME }}/.dotfiles/{{ item.key }}" src: "{{ ansible_env.HOME }}/.dotfiles/{{ item.key }}"
dest: "{{ ansible_env.HOME}}/{{ item.value }}" dest: "{{ ansible_env.HOME}}/{{ item.value }}"

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

Loading…
Cancel
Save