Skip to content

Ansible role to manage oh-my-zsh installation.

License

Notifications You must be signed in to change notification settings

feffi/ansible-macos-ohmyzsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published