Files
dotfiles/roles/zsh/tasks/main.yaml
Johannes Knopp 586e4b6320 update conf
2026-04-06 01:30:38 +02:00

27 lines
573 B
YAML

---
- name: Install zsh
package:
name: zsh
state: present
become: yes
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: Check for custom zshrc
stat:
path: "{{ role_path }}/files/.zshrc"
register: custom_zshrc
- name: Symlink custom zshrc
file:
src: "{{ role_path }}/files/.zshrc"
dest: "{{ home_dir }}/.zshrc"
state: link
force: yes
when: custom_zshrc.stat.exists