From 2a9bfe3a862e6d566e9a708bd1606e0467a110f9 Mon Sep 17 00:00:00 2001 From: Tobias Maier Date: Mon, 13 Jun 2022 21:52:55 +0200 Subject: [PATCH] Changed zsh to module system --- arch_gnome.yml | 30 ++---------------------------- modules/zsh.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 28 deletions(-) create mode 100644 modules/zsh.yml diff --git a/arch_gnome.yml b/arch_gnome.yml index 8c28c16..f498727 100644 --- a/arch_gnome.yml +++ b/arch_gnome.yml @@ -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: diff --git a/modules/zsh.yml b/modules/zsh.yml new file mode 100644 index 0000000..c178009 --- /dev/null +++ b/modules/zsh.yml @@ -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'