remove oh-my-zsh
This commit is contained in:
@ -1,16 +1,32 @@
|
||||
---
|
||||
- name: Install zsh
|
||||
- name: Install zsh and git
|
||||
package:
|
||||
name: zsh
|
||||
name:
|
||||
- zsh
|
||||
- git
|
||||
state: present
|
||||
become: yes
|
||||
become_user: root
|
||||
# become_user: root
|
||||
|
||||
- name: Install oh-my-zsh
|
||||
shell: |
|
||||
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" --unattended
|
||||
args:
|
||||
creates: "{{ home_dir }}/.oh-my-zsh"
|
||||
- name: Ensure zsh plugin directory exists
|
||||
file:
|
||||
path: "{{ zsh_plugins_dir }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: Clone/checkout zsh plugins at pinned versions
|
||||
git:
|
||||
repo: "{{ item.repo }}"
|
||||
dest: "{{ zsh_plugins_dir }}/{{ item.name }}"
|
||||
version: "{{ item.version }}"
|
||||
update: true
|
||||
loop: "{{ zsh_plugins }}"
|
||||
|
||||
# - name: Install oh-my-zsh
|
||||
# shell: |
|
||||
# sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" --unattended
|
||||
# args:
|
||||
# creates: "{{ home_dir }}/.oh-my-zsh"
|
||||
|
||||
- name: Symlink .zshenv
|
||||
file:
|
||||
|
||||
Reference in New Issue
Block a user