split into roles

This commit is contained in:
Pim Kunis 2022-12-02 20:10:38 +01:00
parent 4d072894ec
commit 74b67b7e27
17 changed files with 186 additions and 110 deletions

17
roles/zsh/tasks/main.yml Normal file
View file

@ -0,0 +1,17 @@
- 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