Files
dotfiles/roles/zsh/tasks/main.yaml
2026-04-10 14:08:56 +02:00

28 lines
568 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: Symlink .zshenv
file:
src: "{{ role_path }}/files/.zshenv"
dest: "{{ home_dir }}/.zshenv"
state: link
force: yes
- name: Symlink .zshrc
file:
src: "{{ role_path }}/files/.zshrc"
dest: "{{ home_dir }}/.zshrc"
state: link
force: yes