[ansible] Clean up config and dev playbooks

pull/28/head
Alpha Chen 11 years ago
parent 4b05974b09
commit 5bdd8da933

@ -1,17 +1,17 @@
- hosts: dev
tasks:
- name: install dependencies
homebrew: name={{ item }} state=present
with_items:
- hosts: all
vars:
dependencies:
- git
- stow
- hosts: prgmr
tasks:
- name: install dependencies
- name: install dependencies with homebrew
homebrew: name={{ item }} state=present
with_items: dependencies
when: ansible_distribution == "MacOSX"
- name: install dependencies with apt
apt: pkg={{ item }} state=present
with_items:
- git
- stow
with_items: dependencies
when: ansible_distribution == "Debian"
- hosts: all
vars:
stow_packages:

@ -0,0 +1,10 @@
- hosts: all
tasks:
- name: symlink dotfiles
file: src={{ ansible_env.HOME }}/Dropbox/dotfiles dest={{ ansible_env.HOME}}/.dotfiles state=link
- include: config.yml
- hosts: all
tasks:
- name: setup ssh keys
local_action: command ruby ~/.dotfiles/scripts/setup_ssh_keys.rb
when: ansible_domain == "local"
Loading…
Cancel
Save