Fixed and make better

master
Leo Maroni 5 years ago
parent 8856ecd9ff
commit 1c777421a1
No known key found for this signature in database
GPG Key ID: 787A3A35970DBC6D

@ -1,4 +1,4 @@
- name: install dependencies - name: install oh-my-zsh dependencies
become: yes become: yes
package: package:
name: name:
@ -9,7 +9,7 @@
- name: clone oh-my-zsh for users - name: clone oh-my-zsh for users
git: git:
repo: 'https://github.com/robbyrussell/oh-my-zsh.git' repo: 'https://github.com/robbyrussell/oh-my-zsh.git'
dest: '~{{ user.username }}/.oh-my.zsh' dest: '~{{ user.username }}/.oh-my-zsh'
clone: yes clone: yes
depth: 1 depth: 1
become: yes become: yes

@ -1,5 +1,7 @@
{{ ansible_managed | comment }} {{ ansible_managed | comment }}
{% set oh_my_zsh = user.oh_my_zsh|default({}) %}
# If you come from bash you might have to change your $PATH. # If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH # export PATH=$HOME/bin:/usr/local/bin:$PATH
@ -10,7 +12,7 @@ export ZSH=$HOME/.oh-my-zsh
# load a random theme each time oh-my-zsh is loaded, in which case, # load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME # to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="{{ user.oh_my_zsh.theme }}" ZSH_THEME="{{ oh_my_zsh.theme | default(oh_my_zsh_theme) }}"
# Set list of themes to pick from when loading at random # Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load # Setting this variable when ZSH_THEME=random will cause zsh to load
@ -70,7 +72,7 @@ DISABLE_AUTO_UPDATE="true"
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse) # Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup. # Add wisely, as too many plugins slow down shell startup.
plugins=({{ user.oh_my_zsh.plugins | default('') | join(' ') }}) plugins=({{ oh_my_zsh.plugins | default(oh_my_zsh_plugins) | join(' ') }})
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh

Loading…
Cancel
Save