Ansible_workstation/tasks/zsh.yml

71 lines
1.8 KiB
YAML
Raw Normal View History

2018-08-22 20:54:51 +00:00
---
2019-03-05 17:28:27 +00:00
- name: Install base CLI packages
pacman:
2021-06-15 08:33:52 +00:00
name:
- zsh
- grml-zsh-config
2019-03-05 17:28:27 +00:00
state: present
2018-08-22 20:54:51 +00:00
- name: Set shell for root to zsh
user:
name: root
shell: /bin/zsh
2018-11-07 09:57:55 +00:00
tags:
- first_deployement
2018-08-22 20:54:51 +00:00
2021-06-15 08:33:52 +00:00
# ZSH dotfiles
- name: dotiles -- create .config/zsh directory
file:
path: /home/{{ item.username }}/.config/zsh/
state: directory
mode: '0755'
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotfiles -- Copy local zshrc
template:
src: files/dotfiles/zshrc
dest: /home/{{ item.username }}/.config/zsh/.zshrc
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotfiles -- Copy local zshenv
template:
src: files/dotfiles/zshenv
dest: /home/{{ item.username }}/.zshenv
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotiles -- clone zsh syntax-hightlighting
git:
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
dest: /home/{{ item.username }}/.config/zsh/zsh-syntax-highlighting
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotiles -- clone zsh autosuggestions
git:
repo: https://github.com/zsh-users/zsh-autosuggestions.git
dest: /home/{{ item.username }}/.config/zsh/zsh-autosuggestions
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotiles -- clone zsh auto-ls
git:
repo: https://github.com/desyncr/auto-ls
dest: /home/{{ item.username }}/.config/zsh/auto-ls
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotiles -- clone zsh pure prompt
git:
repo: https://github.com/sindresorhus/pure.git
dest: /home/{{ item.username }}/.config/zsh/pure
with_items: "{{ dotusers }}"
when: prompt == 'zsh'