Changed zsh to module system

This commit is contained in:
Tobias Maier
2022-06-13 21:52:55 +02:00
parent e65b8192e9
commit 2a9bfe3a86
2 changed files with 31 additions and 28 deletions

View File

@@ -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
View 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'