From fa0af1d1a63f5b7a8113b467c7676c2c2ec188a9 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Sun, 6 Mar 2016 07:26:46 -0800 Subject: [PATCH] [meta] Fix some errors w/playbooks --- ansible/main.yml | 1 + ansible/roles/dotfiles/tasks/main.yml | 1 + ansible/{vars/dotfiles.yml => roles/dotfiles/vars/main.yml} | 0 ansible/roles/osx/tasks/main.yml | 1 + 4 files changed, 3 insertions(+) rename ansible/{vars/dotfiles.yml => roles/dotfiles/vars/main.yml} (100%) diff --git a/ansible/main.yml b/ansible/main.yml index 9632393..50d4d50 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -9,6 +9,7 @@ git: repo: https://github.com/kejadlen/dotfiles.git dest: ~/.dotfiles + ignore_errors: yes - name: update homebrew homebrew: update_homebrew=yes diff --git a/ansible/roles/dotfiles/tasks/main.yml b/ansible/roles/dotfiles/tasks/main.yml index 17727d0..c57b16b 100644 --- a/ansible/roles/dotfiles/tasks/main.yml +++ b/ansible/roles/dotfiles/tasks/main.yml @@ -1,3 +1,4 @@ +--- - name: create config directories file: path={{ item }} state=directory with_items: "{{ conf_dirs }}" diff --git a/ansible/vars/dotfiles.yml b/ansible/roles/dotfiles/vars/main.yml similarity index 100% rename from ansible/vars/dotfiles.yml rename to ansible/roles/dotfiles/vars/main.yml diff --git a/ansible/roles/osx/tasks/main.yml b/ansible/roles/osx/tasks/main.yml index a39450a..b165005 100644 --- a/ansible/roles/osx/tasks/main.yml +++ b/ansible/roles/osx/tasks/main.yml @@ -4,6 +4,7 @@ dest: "{{ item }}" rsync_opts: --ignore-existing with_items: "{{ app_prefs }}" + when: inventory_hostname != "localhost" - include: dock.yml