/ansible-role-zsh

Ansible role to install zsh and oh-my-zsh

Primary LanguageRubyMIT LicenseMIT

ansible-role-zsh

Build Status

Ansible role to install zsh and Oh My ZSH.

Requirements

None.

Role Variables

Available variables are listed below, along with default values:

zsh_users:
  - "{{ ansible_ssh_user }}"
zsh_ohmy_theme: pygmalion
zsh_ohmy_custom_plugins:
  - name: zsh-syntax-highlighting
    repo: "git://github.com/zsh-users/zsh-syntax-highlighting.git"
  - name: zsh-autosuggestions
    repo: "git://github.com/zsh-users/zsh-autosuggestions.git"

zsh_ohmy_plugins:
  - git
  - git-flow
  - docker
  - zsh-syntax-highlighting
  - zsh-autosuggestions
zsh_ohmy_auto_update: true

Dependencies

None.

Example Playbook

Install zsh and oh-my-zsh with default settings:

- hosts: server
  roles:
     - vaulttec.zsh

Install zsh and oh-my-zsh with random theme and different plugins:

- hosts: desktop
  roles:
     - { role: vaulttec.zsh, zsh_ohmy_theme: random, zsh_ohmy_plugins: [git, git-extras] }

Testing

cd tests && vagrant up

License

MIT