install and configure zsh
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
- name: Install zsh
|
||||
apt:
|
||||
name:
|
||||
- zsh
|
||||
- zsh-syntax-highlighting
|
||||
- fzf
|
||||
state: present
|
||||
- name: Create .config/zsh directory
|
||||
file:
|
||||
path: "/home/{{ item }}/.config/zsh"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
loop: "{{ users }}"
|
||||
when: users is defined
|
||||
- name: Copy .zshenv
|
||||
copy:
|
||||
src: zsh/.zshenv
|
||||
dest: "/home/{{ item }}/.zshenv"
|
||||
mode: "0644"
|
||||
loop: "{{ users }}"
|
||||
when: users is defined
|
||||
- name: Copy .zshrc
|
||||
copy:
|
||||
src: zsh/.zshrc
|
||||
dest: "/home/{{ item }}/.config/zsh/.zshrc"
|
||||
mode: "0644"
|
||||
loop: "{{ users }}"
|
||||
when: users is defined
|
||||
- name: Copy .aliasrc
|
||||
copy:
|
||||
src: zsh/.aliasrc
|
||||
dest: "/home/{{ item }}/.config/zsh/.aliasrc"
|
||||
mode: "0644"
|
||||
loop: "{{ users }}"
|
||||
when: users is defined
|
||||
- name: Set zsh as default shell
|
||||
user:
|
||||
name: "{{ item }}"
|
||||
shell: /bin/zsh
|
||||
loop: "{{ users }}"
|
||||
when: users is defined
|
||||
Reference in New Issue
Block a user