Rework zsh installer

Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
2024-04-12 14:54:00 +02:00
parent 2aa42f6e6f
commit 0488446a71
2 changed files with 11 additions and 177 deletions

View File

@@ -1,49 +1,30 @@
---
- name: Install zsh
become: true
package:
ansible.builting.package:
name: zsh
state: present
- name: Install oh-my-zsh
become: true
become_user: noahk
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
ansible.builtin.command: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
changed_when: true
- name: Install zsh-syntax-highlighting
become: true
become_user: noahk
git:
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
dest: /home/noahk/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
update: true
ansible.builtin.package:
name: zsh-syntax-highlighting
state: present
- name: Install zsh-autosuggestions
become: true
become_user: noahk
git:
repo: https://github.com/zsh-users/zsh-autosuggestions.git
dest: /home/noahk/.oh-my-zsh/custom/plugins/zsh-autosuggestions
update: true
ansible.builtin.package:
name: zsh-autosuggestions
state: present
- name: Install starship
become: true
become_user: noahk
shell: sh -c "$(curl -fsSL https://starship.rs/install.sh)"
- name: Configure ZSH
become: true
become_user: noahk
template:
src: zshrc.j2
dest: /home/noahk/.zshrc
owner: noahk
group: noahk
mode: 0644
- name: Install nushell
become: true
package:
name: nushell
state: present
ansible.builtin.command: sh -c "$(curl -fsSL https://starship.rs/install.sh)"
changed_when: true