diff --git a/local.yml b/local.yml index e0a0f5b..31d4faf 100644 --- a/local.yml +++ b/local.yml @@ -32,9 +32,14 @@ - name: check if on my zsh is installed stat: - path: /home/gianm/.oh-my-zsh + path: "/home/gianm/.oh-my-zsh" register: zsh_dir + - name: Install oh my zsh + debug: + msg: "skipping install oh my zsh" + when: zsh_dir.stat.exists + - name: Install oh my zsh become_user: gianm when: not zsh_dir.stat.exists