From 1094d53c600a3d0c36ac27ba39e77ac4747eab65 Mon Sep 17 00:00:00 2001 From: hogweed1 Date: Thu, 5 Nov 2026 01:54:10 +1000 Subject: [PATCH] well, --- playbooks/software/zsh/user_tasks.yml | 69 ++++++++++++++------------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/playbooks/software/zsh/user_tasks.yml b/playbooks/software/zsh/user_tasks.yml index 2161614..d7b6da2 100644 --- a/playbooks/software/zsh/user_tasks.yml +++ b/playbooks/software/zsh/user_tasks.yml @@ -9,51 +9,52 @@ set_fact: #user_home: "{{ getent_passwd[current_user] }}" user_home: "{{ '/root' if current_user == 'root' else '/home/' ~ current_user }}" - tags: [always] + #tags: [always] - name: "[{{ current_user }}] Меняем дефолтный shell на /bin/zsh" user: name: "{{ current_user }}" shell: /bin/zsh - tags: [deploy] + #tags: [deploy] # ========================================== # БЛОК 1: ПЕРВИЧНАЯ РАСКАТКА (БЫСТРЫЙ CLONE) # ========================================== +- name: "Первичный деплой репозиториев" + block: + - name: "[{{ current_user }}] Клонируем Oh My Zsh" + git: + repo: 'https://github.com/ohmyzsh/ohmyzsh.git' + dest: "{{ user_home }}/.oh-my-zsh" + depth: 1 + update: no + #become_user: "{{ current_user }}" + #tags: [deploy] -- name: "[{{ current_user }}] Клонируем Oh My Zsh" - git: - repo: 'https://github.com/ohmyzsh/ohmyzsh.git' - dest: "{{ user_home }}/.oh-my-zsh" - depth: 1 - update: no - become_user: "{{ current_user }}" - tags: [deploy] + - name: "[{{ current_user }}] Клонируем плагин zsh-syntax-highlighting" + git: + repo: 'https://github.com/zsh-users/zsh-syntax-highlighting.git' + dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting" + depth: 1 + update: no + #become_user: "{{ current_user }}" + #tags: [deploy] -- name: "[{{ current_user }}] Клонируем плагин zsh-syntax-highlighting" - git: - repo: 'https://github.com/zsh-users/zsh-syntax-highlighting.git' - dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting" - depth: 1 - update: no - become_user: "{{ current_user }}" - tags: [deploy] + - name: "[{{ current_user }}] Клонируем плагин zsh-autosuggestions" + git: + repo: 'https://github.com/zsh-users/zsh-autosuggestions.git' + dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions" + depth: 1 + update: no + #become_user: "{{ current_user }}" + #tags: [deploy] -- name: "[{{ current_user }}] Клонируем плагин zsh-autosuggestions" - git: - repo: 'https://github.com/zsh-users/zsh-autosuggestions.git' - dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions" - depth: 1 - update: no - become_user: "{{ current_user }}" - tags: [deploy] - -- name: "[{{ current_user }}] Клонируем тему Powerlevel10k" - git: - repo: 'https://github.com/romkatv/powerlevel10k.git' - dest: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k" - depth: 1 - update: no + - name: "[{{ current_user }}] Клонируем тему Powerlevel10k" + git: + repo: 'https://github.com/romkatv/powerlevel10k.git' + dest: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k" + depth: 1 + update: no become_user: "{{ current_user }}" tags: [deploy] @@ -114,7 +115,7 @@ group: "{{ current_user }}" mode: '0644' tags: [deploy, update] - + - name: "[{{ current_user }}] Предзагрузка бинарника gitstatusd (убирает тормоза при первом входе)" command: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/install" args: