29 lines
719 B
YAML
29 lines
719 B
YAML
---
|
|
# Install Jeff Geerling's dotfiles.
|
|
- name: Clone dotfiles repository into temporary location.
|
|
git: >
|
|
repo=https://github.com/geerlingguy/dotfiles.git
|
|
dest=~/Dropbox/Development/GitHub/dotfiles
|
|
sudo: no
|
|
|
|
- name: Check if .bash_profile is a link.
|
|
shell: ls -F ~/.bash_profile
|
|
register: is_link
|
|
changed_when: false
|
|
|
|
- name: Remove current .bash_profile file if necessary.
|
|
file: path=~/.bash_profile state=absent
|
|
when: "'@' not in is_link.stdout"
|
|
|
|
- name: Link dotfiles into home folder.
|
|
file: src=~/Dropbox/Development/GitHub/dotfiles/{{ item }} dest=~/{{ item }} state=link
|
|
sudo: no
|
|
with_items:
|
|
- .bash_profile
|
|
- .inputrc
|
|
- .osx
|
|
- .vimrc
|
|
|
|
- name: Run .osx dotfiles.
|
|
shell: date
|