Ansible role to manage zsh and oh-my-zsh installations.
- Ansible 2.3
hash_behaviour = merge
Just add the role to your requirements.yml
file:
- src: https://github.com/feffi/ansible-macos-ohmyzsh.git
name: feffi.macos-ohmyzsh
All role based variables are listed below, along with default values:
macos_ohmyzsh:
# Set zsh as default shell
default: true
# Configure oh-my-zsh after install?
configure: true
config:
theme: "agnoster"
case_sensitive: false
hyphen_insensitive: false
disable_update_prompt: false
disable_auto_update: false
update_days: 13
disable_ls_colors: false
disable_auto_title: false
disable_correction: false
completion_waiting_dots: true
disable_untracked_files_dirty: false
custom: "$ZSH/custom"
plugins: "git"
None.
- hosts: all
vars:
macos_ohmyzsh:
# Set zsh as default shell
default: true
# Configure oh-my-zsh after install?
configure: true
config:
theme: "agnoster"
case_sensitive: false
hyphen_insensitive: false
disable_update_prompt: false
disable_auto_update: false
update_days: 13
disable_ls_colors: false
disable_auto_title: false
disable_correction: false
completion_waiting_dots: true
disable_untracked_files_dirty: false
custom: "$ZSH/custom"
plugins: "git"
roles:
- { role: feffi.macos-ohmyzsh }
Or with local parameters:
- hosts: all
roles:
- { role: feffi.macos-ohmyzsh,
macos_ohmyzsh: {
# Set zsh as default shell
default: true,
# Configure oh-my-zsh after install?
configure: false,
config: {
theme: "agnoster",
case_sensitive: false,
hyphen_insensitive: false,
disable_update_prompt: false,
disable_auto_update: false,
update_days: 13,
disable_ls_colors: false,
disable_auto_title: false,
disable_correction: false,
completion_waiting_dots: true,
disable_untracked_files_dirty: false,
custom: "$ZSH/custom",
plugins: "git"
}
}
}