split into roles
This commit is contained in:
parent
4d072894ec
commit
74b67b7e27
17 changed files with 186 additions and 110 deletions
17
roles/zsh/tasks/main.yml
Normal file
17
roles/zsh/tasks/main.yml
Normal 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
|
Reference in a new issue