[ansible] Clean up config and dev playbooks
diff --git a/ansible/config.yml b/ansible/config.yml
index 04a9f069..ff72d9a7 100644
--- a/ansible/config.yml
+++ b/ansible/config.yml
@@ -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:
diff --git a/ansible/dev.yml b/ansible/dev.yml
new file mode 100644
index 00000000..fa97c0cf
--- /dev/null
+++ b/ansible/dev.yml
@@ -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"