Skip to content
This repository has been archived by the owner on Sep 15, 2019. It is now read-only.

loliee/ansible-prezto

Repository files navigation

Ansible Role: Prezto

Build Status

Setup prezto zsh framework.

Requirements

Requires git 2.0.0+ and ZSH 5.0.0+.

  • RedHat family
  • Debian family
  • Darwin (OSX).

Dependencies

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

Role Variables

__users__

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...

Defaults

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.

Example Playbook

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.

Run Tests

Require serverspec, check .travis.yml for details.

Licence

MIT © Maxime Loliée

About

Ansible role for installing prezto.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages