You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
787 B
28 lines
787 B
- name: install ZSH
|
|
homebrew: name=zsh state=present
|
|
|
|
- name: symlink ~/.zprezto
|
|
file:
|
|
src: "{{ ansible_env.HOME }}/.dotfiles/src/prezto"
|
|
dest: "{{ ansible_env.HOME}}/.zprezto"
|
|
state: link
|
|
|
|
- name: get Prezto runcoms from dotfiles
|
|
shell: ls ~/.zprezto/runcoms | grep -v README.md
|
|
register: prezto_runcoms
|
|
|
|
- name: symlink Prezto runcoms
|
|
file:
|
|
src: "{{ ansible_env.HOME }}/.zprezto/runcoms/{{ item }}"
|
|
dest: "{{ ansible_env.HOME}}/.{{ item }}"
|
|
state: link
|
|
with_items: "{{ prezto_runcoms.stdout_lines }}"
|
|
|
|
- name: add /usr/local/bin/zsh to /etc/shells
|
|
lineinfile: dest=/etc/shells line=/usr/local/bin/zsh state=present
|
|
become: yes
|
|
|
|
- name: set the default user shell to zsh
|
|
user: name={{ ansible_env.USER }} shell=/usr/local/bin/zsh
|
|
become: yes
|