[meta] More fixing up of osx and dotfiles roles

pull/28/head
Alpha Chen 10 years ago
parent 7bf76e26c8
commit 8424152805

@ -4,6 +4,7 @@
recursive: yes recursive: yes
dest: ~/.dotfiles dest: ~/.dotfiles
force: no force: no
ignore_errors: True
- name: no-op so that sudo works in Homebrew later - name: no-op so that sudo works in Homebrew later
ping: ping:
sudo: True sudo: True

@ -5,5 +5,11 @@
- ~/.ssh - ~/.ssh
- file: src=~/.dotfiles/{{ item.key }} dest={{ item.value }} state=link - file: src=~/.dotfiles/{{ item.key }} dest={{ item.value }} state=link
with_dict: dotfiles with_dict: dotfiles
- file:
src: ~/Dropbox/dotfiles/{{ item.key }}
dest: "{{ item.value }}"
state: link
force: yes # Since these won't exist until later.
with_dict: private
- file: src=~/.dotfiles/.ssh/{{ item }} dest=~/.ssh/{{ item }} state=link - file: src=~/.dotfiles/.ssh/{{ item }} dest=~/.ssh/{{ item }} state=link
with_lines: ls ~/.dotfiles/.ssh with_lines: ls ~/.dotfiles/.ssh

@ -1,6 +1,4 @@
--- ---
- include: dotfiles.yml - include: dotfiles.yml
tags: dotfiles
- include: powerline.yml - include: powerline.yml
- include: zsh.yml - include: zsh.yml
- include: ssh.yml

@ -7,4 +7,6 @@
- python - python
- python-pip - python-pip
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
- command: pip install --user --editable=~/.dotfiles/src/powerline - command: >
/usr/local/bin/pip install --user
--editable={{ ansible_env.HOME }}/.dotfiles/src/powerline

@ -1,7 +0,0 @@
---
- command: >
chdir={{ ansible_env.HOME }}/.dotfiles
stow --stow --target={{ ansible_env.HOME }} --no-folding ssh
tags: stow
# - local_action: command ruby scripts/setup_ssh_keys.rb
# when: ansible_domain == "local"

@ -1,10 +1,8 @@
dotfiles: dotfiles:
gitignore: ~/.gitignore gitignore: ~/.gitignore
.bundle/config: ~/.bundle/config .bundle/config: ~/.bundle/config
.config: ~/.config
.gemrc: ~/.gemrc .gemrc: ~/.gemrc
.git_templates: ~/.git_templates .git_templates: ~/.git_templates
.gitconfig.private: ~/.gitconfig.private
.gitconfig: ~/.gitconfig .gitconfig: ~/.gitconfig
.hammerspoon: ~/.hammerspoon .hammerspoon: ~/.hammerspoon
# .pentadactyl: ~/.pentadactyl # .pentadactyl: ~/.pentadactyl
@ -13,3 +11,6 @@ dotfiles:
.tmux.conf: ~/.tmux.conf .tmux.conf: ~/.tmux.conf
.vim: ~/.vim .vim: ~/.vim
.vimrc: ~/.vimrc .vimrc: ~/.vimrc
private:
.config: ~/.config
.gitconfig.private: ~/.gitconfig.private

@ -6,9 +6,10 @@
- include: fonts.yml - include: fonts.yml
- include: defaults.yml - include: defaults.yml
- file: src=~/.dotfiles/osx/.tmux.conf.local dest=~/.tmux.conf.local state=link - file: path=~/Library/KeyBindings state=directory
- file:
# - file: path=~/Library/KeyBindings state=directory src: ../osx/DefaultKeyBinding.dict
# - copy: src=DefaultKeyBinding.dict dest=~/Library/KeyBindings/DefaultKeyBinding.dict dest: ~/Library/KeyBindings/DefaultKeyBinding.dict
# - command: open ~/.dotfiles/Alpha.terminal # TODO This should probably be moved to the dotfiles role.
- file: src=~/.dotfiles/osx/.tmux.conf.local dest=~/.tmux.conf.local state=link

Loading…
Cancel
Save