71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
---
|
|
- name: Install base CLI packages
|
|
pacman:
|
|
name:
|
|
- zsh
|
|
- grml-zsh-config
|
|
state: present
|
|
|
|
- name: Set shell for root to zsh
|
|
user:
|
|
name: root
|
|
shell: /bin/zsh
|
|
tags:
|
|
- first_deployement
|
|
|
|
|
|
# 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'
|