From 0b705a62ae5c4210f0d0dfb4be526db7630bbb28 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 30 Oct 2022 08:01:23 -0500 Subject: [PATCH] update --- roles/customize/tasks/defaults.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/customize/tasks/defaults.yml b/roles/customize/tasks/defaults.yml index d021310..7ec8b5c 100644 --- a/roles/customize/tasks/defaults.yml +++ b/roles/customize/tasks/defaults.yml @@ -13,17 +13,20 @@ with_items: "{{ dconf }}" - name: Check that Oh My ZSH is installed + become_user: user stat: path: "~/.oh-my-zsh" register: ohmyzsh_result - name: Install Oh My ZSH + become_user: user shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" args: creates: "~/.oh-my-zsh" when: not ohmyzsh_result.stat.exists - name: "Create a default ZSH configuration" + become_user: user template: src: templates/.zshrc dest: "~/.zshrc" @@ -31,11 +34,13 @@ force: yes - name: Check that Auto Suggestions is installed + become_user: user stat: path: ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions register: auto_suggestions_result - name: Install Auto Suggestions + become_user: user shell: git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions when: not auto_suggestions_result.stat.exists @@ -44,6 +49,7 @@ shell: /bin/zsh - name: Create bin folder + become_user: user ansible.builtin.file: path: ~/.local/bin owner: "user"