Changed zsh to module system
This commit is contained in:
@@ -75,34 +75,8 @@
|
||||
become_method: su
|
||||
become_user: aur_builder
|
||||
|
||||
- name: Install ZSH stuff
|
||||
kewlfft.aur.aur:
|
||||
use: paru
|
||||
name: zsh-theme-powerlevel10k-git,zsh-autosuggestions,zsh-syntax-highlighting,zsh-sudo-git
|
||||
state: present
|
||||
become: yes
|
||||
become_user: aur_builder
|
||||
|
||||
- name: Clone dotfiles
|
||||
ansible.builtin.git:
|
||||
repo: https://gitea.maiertobi.de/tobimai/dotfiles.git
|
||||
dest: /tmp/dotfiles
|
||||
|
||||
- name: Copy zshrc to home dir
|
||||
ansible.builtin.copy:
|
||||
src: //tmp/dotfiles/.zshrc
|
||||
dest: /home/tobi/.zshrc
|
||||
owner: tobi
|
||||
group: tobi
|
||||
mode: '0644'
|
||||
|
||||
- name: Copy p10k to home dir
|
||||
ansible.builtin.copy:
|
||||
src: //tmp/dotfiles/.p10k.zsh
|
||||
dest: /home/tobi/.p10k.zsh
|
||||
owner: tobi
|
||||
group: tobi
|
||||
mode: '0644'
|
||||
- name: Include task list in play
|
||||
import_tasks: modules/zsh.yml
|
||||
|
||||
- name: Set a hostname
|
||||
hostname:
|
||||
|
||||
29
modules/zsh.yml
Normal file
29
modules/zsh.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
- name: Install ZSH stuff
|
||||
kewlfft.aur.aur:
|
||||
use: paru
|
||||
name: zsh-theme-powerlevel10k-git,zsh-autosuggestions,zsh-syntax-highlighting,zsh-sudo-git
|
||||
state: present
|
||||
become: yes
|
||||
become_user: aur_builder
|
||||
|
||||
- name: Clone dotfiles
|
||||
ansible.builtin.git:
|
||||
repo: https://gitea.maiertobi.de/tobimai/dotfiles.git
|
||||
dest: /tmp/dotfiles
|
||||
force: yes
|
||||
|
||||
- name: Copy zshrc to home dir
|
||||
ansible.builtin.copy:
|
||||
src: //tmp/dotfiles/.zshrc
|
||||
dest: /home/tobi/.zshrc
|
||||
owner: tobi
|
||||
group: tobi
|
||||
mode: '0644'
|
||||
|
||||
- name: Copy p10k to home dir
|
||||
ansible.builtin.copy:
|
||||
src: //tmp/dotfiles/.p10k.zsh
|
||||
dest: /home/tobi/.p10k.zsh
|
||||
owner: tobi
|
||||
group: tobi
|
||||
mode: '0644'
|
||||
Reference in New Issue
Block a user