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

18 lines
356 B
YAML
Raw Normal View History

2022-12-02 19:10:38 +00:00
- name: Install zsh
become: true
apt:
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
pkg:
- zsh
- name: Set default shell to zsh
become: true
user:
name: "{{ ansible_user_id }}"
shell: /usr/bin/zsh
- name: Install .zshrc
template:
src: "{{ role_path }}/templates/.zshrc.j2"
dest: ~/.zshrc