Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Ansible role to manage oh-my-zsh installation.

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.