ohmyzsh

Ansible role : OhMyZsh

Ansible Role Molecule GitHub release Github license

Install and configure oh-my-zsh for any user.

Requirements

This role is self contained. He installs zsh and git packages for debian, ubuntu, opensuse, sles, centos if needed.

Role Variables

From defaults/main.yml :

ohmyzsh_users:
  - user_name: pandemonium
    user_group: pandemonium
    user_home: /home/pandemonium/

ohmyzsh_config:
  - { regexp: '^ZSH_THEME="robbyrussell"$', line: 'ZSH_THEME="agnoster"' }
  - { regexp: '^# ENABLE_CORRECTION="true"$', line: 'ENABLE_CORRECTION="true"' }
  - { regexp: '^plugins=\(.*\)', line: "plugins=({{ ohmyzsh_plugins }})" }

ohmyzsh_plugins: >-
  ansible
  colored-man-pages
  composer
  debian
  docker
  docker-compose
  extract
  git
  git-flow
  history
  kubectl
  minikube
  ssh-agent
  vagrant
  zsh-autosuggestions
  zsh-syntax-highlighting

From vars/[distro|familly]-[os_familly]-[os_version].yml (depends of distribution):

_packages:
  - git
  - sudo
  - zsh

Dependencies

None.

Example Playbook

- name: OhMyZsh play
  hosts: pandama
  become: true
  become_method: sudo
  become_user: root
  tasks:
    - import_role:
        name: pandemonium1986.ohmyzsh

Warning : dont forget to set pipelining : True in your ansible.cfg for bypass file Becoming an Unprivileged User

License

This project is licensed under the MIT License - see the LICENSE file for details

Author Information

About

Install and configure oh-my-zsh for any user

Install
ansible-galaxy install Pandemonium1986/ansible-role-ohmyzsh
GitHub repository
License
mit
Downloads
2758
Owner
SRE CI/CD and DevOps enthusiast