From 491fb41f68125ed98f0e4edb55eac9929e7acb33 Mon Sep 17 00:00:00 2001 From: Minca Daniel Andrei Date: Wed, 7 Sep 2016 08:51:36 +0300 Subject: [PATCH] Fix directory issue for zsh plugins & themes Damn thing wasn't pulling the files from the web because the directories didn't exist. As a result, instruct TheMachine to first create the dirs, then pull the plugins & themes Related: #7 Signed-off-by: Minca Daniel Andrei --- roles/packages/tasks/zshell.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/roles/packages/tasks/zshell.yml b/roles/packages/tasks/zshell.yml index 249bc9a..64aa90b 100644 --- a/roles/packages/tasks/zshell.yml +++ b/roles/packages/tasks/zshell.yml @@ -26,9 +26,14 @@ shell: which zsh tags: zsh +- name: Create plugins and themes dirs + file: path=~/.oh-my-zsh/custom/{{ item }} state=directory + with_items: + - plugins/dangit + - themes + tags: zsh + - name: Pull the Custom Plugins and Themes - become: yes - become_method: sudo get_url: url: https://raw.githubusercontent.com/{{ gh_user }}/{{ gh_repo }}/{{ gh_branch }}/custom/{{ item.name }} dest: ~/.oh-my-zsh/custom/{{ item.dir }}