From 603550c72ae8139a999fb4e73a175ed7190b9001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Z=C3=BCrn?= Date: Sun, 31 Jan 2016 11:56:55 +0100 Subject: [PATCH] Syntax update --- oh-my-zsh/ohmyzsh.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/oh-my-zsh/ohmyzsh.yml b/oh-my-zsh/ohmyzsh.yml index 8d4d09a..619bcfd 100644 --- a/oh-my-zsh/ohmyzsh.yml +++ b/oh-my-zsh/ohmyzsh.yml @@ -3,7 +3,8 @@ - hosts: spcs user: remy - sudo: True + become: yes + become_method: sudo connection: ssh # or paramiko vars: @@ -14,7 +15,7 @@ zsh_theme: steeef tasks: - - name: Install git and zsh + - name: Install git and zsh apt: name=$item state=latest update_cache=yes with_items: - git @@ -22,19 +23,19 @@ - git-core - name: Clone oh-my-zsh repo - git: repo=https://github.com/robbyrussell/oh-my-zsh.git dest=/home/$user/.oh-my-zsh + git: repo=https://github.com/robbyrussell/oh-my-zsh.git dest=/home/{{user}}/.oh-my-zsh - name: deploy .zshrc - template: src=files/zshrc.in dest=/home/$user/conf/zshrc owner=$user + template: src=files/zshrc.in dest=/home/{{user}}/conf/zshrc owner={{user}} - name: remove standard zshrc - file: path=/home/$user/.zshrc state=absent + file: path=/home/{{user}}/.zshrc state=absent - name: Create conf folder in home directory - file: path=/home/$user/conf/ state=directory owner=$user + file: path=/home/{{user}}/conf/ state=directory owner={{user}} - name: symlink zshrc - file: path=/home/$user/.zshrc src=/home/$user/conf/zshrc state=link owner=$user + file: path=/home/{{user}}/.zshrc src=/home/{{user}}/conf/zshrc state=link owner={{user}} - name: Set zsh as default shell - user: name=$user shell=/bin/zsh + user: name={{user}} shell=/bin/zsh