From b7d64d67f4b9ade6da59d73c1c6136278716438a Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Mon, 1 Sep 2014 13:58:22 -0700 Subject: [PATCH] [meta] Remove unnecessary config playbook --- ansible/config.yml | 37 ----------------------- ansible/roles/dotfiles/tasks/dotfiles.yml | 4 +++ 2 files changed, 4 insertions(+), 37 deletions(-) delete mode 100644 ansible/config.yml diff --git a/ansible/config.yml b/ansible/config.yml deleted file mode 100644 index 4527f3d..0000000 --- a/ansible/config.yml +++ /dev/null @@ -1,37 +0,0 @@ -- hosts: all - vars: - dependencies: - - git - - stow - tasks: - - 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: dependencies - when: ansible_distribution == "Debian" -- hosts: all - vars: - stow_packages: - - config - - git - - pentadactyl - - ruby - - ssh - - tmux - - vim - tasks: - - name: clone/update dotfiles - git: repo=https://github.com/kejadlen/dotfiles.git dest=~/.dotfiles - - name: stow files - command: chdir={{ ansible_env.HOME }}/.dotfiles stow --target={{ ansible_env.HOME }} --stow {{ item }} - with_items: stow_packages - - name: link unstowable files - file: src={{ ansible_env.HOME }}/.dotfiles/{{ item.key }} dest={{ ansible_env.HOME}}/{{ item.value }} state=link - with_dict: - git/.gitignore: .gitignore - - name: setup ssh keys - local_action: command ruby ~/.dotfiles/scripts/setup_ssh_keys.rb - when: ansible_domain == "local" diff --git a/ansible/roles/dotfiles/tasks/dotfiles.yml b/ansible/roles/dotfiles/tasks/dotfiles.yml index a3fb0e8..e02994b 100644 --- a/ansible/roles/dotfiles/tasks/dotfiles.yml +++ b/ansible/roles/dotfiles/tasks/dotfiles.yml @@ -1,5 +1,8 @@ --- - homebrew: name=stow + # when: ansible_distribution == "MacOSX" +# - apt: pkg=stow + # when: ansible_distribution == "Debian" - command: > chdir={{ ansible_env.HOME }}/.dotfiles stow --stow --target={{ ansible_env.HOME }} {{ item }} @@ -10,3 +13,4 @@ state: link with_dict: ln - local_action: command ruby scripts/setup_ssh_keys.rb + # when: ansible_domain == "local"