Setup prezto zsh framework.
Requires git 2.0.0+ and ZSH 5.0.0+.
- RedHat family
- Debian family
- Darwin (OSX).
- Role ansible-git
- Role ansible-zsh
To install:
add in your requirements.yml
- src: loliee.zsh
name: ansible-zsh
path: ../
- src: loliee.git
name: ansible-git
path: ../
Run following command to install packages in roles/
directory.
ansible-galaxy install -r requirements.yml -p roles --force
Unset by default, dictionary should defined like this:
__users__:
[username]:
[option]: [value]
Options
Option | Type | Comments |
---|---|---|
prezto_editor | string | vi or emacs . default value is vi . |
prezto_install | boolean | Yes or No , default value is No . |
prezto_zpreztorc_content | text | Lines to append to ~/.zpreztorc opts , modules... |
Check defaults/main.yml for default values.
Variable | Type | Comments |
---|---|---|
prezto_repo_url | string | Prezto git repository url. |
prezto_source | string | How to source prezto in .zshrc . |
prezto_zpreztorc_default_content | text | Default lines to append to ~/.zpreztorc opts , modules..., if prezto_zpreztorc_content no set. |
The following playbook will install prezto for root user.
# ./tests/playbooks/main.yml
- hosts: localhost
remote_user: root
vars:
__users__:
root:
prezto_install: Yes
Run test, make sure ansible-zsh and ansible-prezto are in your role path.
Require serverspec, check .travis.yml for details.
MIT © Maxime Loliée