Skip to content

andtherand/ansible-role-ohmyzsh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: OhMyZsh

This role will assume the following configuration:

  • Install ohmyzsh globally
  • Setup a local zshrc file

Requirements

  • Ansible 1.7.2+

Dependencies

None.

Installation

Using ansible galaxy:

ansible-galaxy install mychiara.ohmyzsh

You can add this role as a dependency for other roles by adding the role to the meta/main.yml file of your own role:

dependencies:
  - { role: mychiara.ohmyzsh }

Role Handlers

None

Role Variables

Name Default Type Description
mychiara_ohmyzsh_users Array Array Collection of users with ohmyzsh custom configurations.
user.name - String Name of the user (Need to match a unix system username).
user.theme - String OhMyZsh theme see: OhMyZsh themes.
user.plugins - Array Array of ohmyzsh plugins see: OhMyZsh plugins

Configuration example

---

mychiara_ohmyzsh_users:
  - name:    root
    theme:   pygmalion
    plugins: ['debian', 'common-aliases', 'history', 'history-substring-search']
  - name:    mychiara
    theme:   pygmalion
    plugins: ['debian', 'common-aliases', 'history', 'history-substring-search']

Example playbook

    - hosts: servers
      roles:
         - { role: mychiara.ohmyzsh }

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Would be create if you added unit tests, that's on my todo list aswell :]

  1. Fork it
  2. Create your feature branch (git checkout -b feature/my-cool-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/my-new-feature)
  5. Create new Pull Request

License

Copyright (c) mychiara | svs under the GPLv2 license.

About

This role will assume the checkout and setup of ohmyzsh.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published