[ansible] Clean up config and dev playbooks

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

@ -1,17 +1,17 @@
- hosts: dev - hosts: all
tasks: vars:
- name: install dependencies dependencies:
homebrew: name={{ item }} state=present
with_items:
- git - git
- stow - stow
- hosts: prgmr
tasks: 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 apt: pkg={{ item }} state=present
with_items: with_items: dependencies
- git when: ansible_distribution == "Debian"
- stow
- hosts: all - hosts: all
vars: vars:
stow_packages: 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