Ansible role to manage oh-my-zsh installation.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
defaults
meta
tasks
templates
tests fixed relative paths Sep 14, 2017
.gitignore
.travis.yml
LICENSE
README.md

README.md

ansible-macos-ohmyzsh

Ansible role to manage zsh and oh-my-zsh installations.

Build Status Github All Releases GitHub forks GitHub stars GitHub watchers Twitter Follow License

Requirements

  • Ansible 2.3

ansible.cfg

hash_behaviour = merge

Install

Just add the role to your requirements.yml file:

- src: https://github.com/feffi/ansible-macos-ohmyzsh.git
  name: feffi.macos-ohmyzsh

Role Variables

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"

Dependencies

None.

Example Playbook

    - 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"
              }
            }
          }