vaulttec.zsh
ansible-role-zsh
これは、zsh と Oh My ZSH をインストールするための Ansible ロールです。
要件
なし。
ロール変数
利用可能な変数は以下に示す通りで、デフォルト値も記載しています:
zsh_user:
- "{{ ansible_ssh_user }}"
zsh_debug_startup_time: false
zsh_ohmy_theme: pygmalion
zsh_ohmy_custom_plugins:
- name: zsh-syntax-highlighting
repo: "git://github.com/zsh-users/zsh-syntax-highlighting.git"
- name: zsh-autosuggestions
repo: "git://github.com/zsh-users/zsh-autosuggestions.git"
zsh_ohmy_plugins:
- git
- git-flow
- docker
- zsh-syntax-highlighting
- zsh-autosuggestions
zsh_ohmy_disable_auto_update: true
依存関係
なし。
例のプレイブック
デフォルト設定で zsh と oh-my-zsh をインストールします:
- hosts: server
roles:
- vaulttec.zsh
ランダムなテーマと異なるプラグインで zsh と oh-my-zsh をインストールします:
- hosts: desktop
roles:
- { role: vaulttec.zsh, zsh_ohmy_theme: random, zsh_ohmy_plugins: [git, git-extras] }
テスト
cd tests && vagrant up
ライセンス
MIT