This repository has been archived on 2024-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
setup/roles/zsh/tasks/main.yml
2023-01-07 21:45:43 +01:00

26 lines
503 B
YAML

- name: Install apt packages
become: true
apt:
pkg:
- zsh
- fzf
- silversearcher-ag
- xclip
- name: Install pygments
pip:
name:
- pygments
- name: Clone oh-my-zsh
git:
repo: https://github.com/ohmyzsh/ohmyzsh.git
depth: 1
dest: ~/.oh-my-zsh
- name: Set default shell to zsh
become: true
user:
name: "{{ ansible_user_id }}"
shell: /usr/bin/zsh
- name: Install .zshrc
copy:
src: "{{ role_path }}/files/.zshrc"
dest: ~/.zshrc