well,
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s

This commit is contained in:
hogweed1
2026-11-05 01:55:21 +10:00
parent 1094d53c60
commit 27ffac1f70

View File

@@ -22,39 +22,39 @@
# ========================================== # ==========================================
- name: "Первичный деплой репозиториев" - name: "Первичный деплой репозиториев"
block: block:
- name: "[{{ current_user }}] Клонируем Oh My Zsh" - name: "[{{ current_user }}] Клонируем Oh My Zsh"
git: git:
repo: 'https://github.com/ohmyzsh/ohmyzsh.git' repo: 'https://github.com/ohmyzsh/ohmyzsh.git'
dest: "{{ user_home }}/.oh-my-zsh" dest: "{{ user_home }}/.oh-my-zsh"
depth: 1 depth: 1
update: no update: no
#become_user: "{{ current_user }}" #become_user: "{{ current_user }}"
#tags: [deploy] #tags: [deploy]
- name: "[{{ current_user }}] Клонируем плагин zsh-syntax-highlighting" - name: "[{{ current_user }}] Клонируем плагин zsh-syntax-highlighting"
git: git:
repo: 'https://github.com/zsh-users/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" dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
depth: 1 depth: 1
update: no update: no
#become_user: "{{ current_user }}" #become_user: "{{ current_user }}"
#tags: [deploy] #tags: [deploy]
- name: "[{{ current_user }}] Клонируем плагин zsh-autosuggestions" - name: "[{{ current_user }}] Клонируем плагин zsh-autosuggestions"
git: git:
repo: 'https://github.com/zsh-users/zsh-autosuggestions.git' repo: 'https://github.com/zsh-users/zsh-autosuggestions.git'
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions" dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
depth: 1 depth: 1
update: no update: no
#become_user: "{{ current_user }}" #become_user: "{{ current_user }}"
#tags: [deploy] #tags: [deploy]
- name: "[{{ current_user }}] Клонируем тему Powerlevel10k" - name: "[{{ current_user }}] Клонируем тему Powerlevel10k"
git: git:
repo: 'https://github.com/romkatv/powerlevel10k.git' repo: 'https://github.com/romkatv/powerlevel10k.git'
dest: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k" dest: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k"
depth: 1 depth: 1
update: no update: no
become_user: "{{ current_user }}" become_user: "{{ current_user }}"
tags: [deploy] tags: [deploy]
@@ -62,63 +62,66 @@
# БЛОК 2: ОБНОВЛЕНИЕ ДО ПОСЛЕДНИХ ВЕРСИЙ (GIT PULL) # БЛОК 2: ОБНОВЛЕНИЕ ДО ПОСЛЕДНИХ ВЕРСИЙ (GIT PULL)
# ========================================== # ==========================================
- name: "[{{ current_user }}] Обновляем Oh My Zsh до latest" - name: "Обновление репозиториев"
git: block:
repo: 'https://github.com/ohmyzsh/ohmyzsh.git' - name: "[{{ current_user }}] Обновляем Oh My Zsh до latest"
dest: "{{ user_home }}/.oh-my-zsh" git:
update: yes repo: 'https://github.com/ohmyzsh/ohmyzsh.git'
become_user: "{{ current_user }}" dest: "{{ user_home }}/.oh-my-zsh"
tags: [update] update: yes
#become_user: "{{ current_user }}"
#tags: [update]
- name: "[{{ current_user }}] Обновляем плагин zsh-syntax-highlighting до latest" - name: "[{{ current_user }}] Обновляем плагин zsh-syntax-highlighting до latest"
git: git:
repo: 'https://github.com/zsh-users/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" dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
update: yes update: yes
become_user: "{{ current_user }}" #become_user: "{{ current_user }}"
tags: [update] #tags: [update]
- name: "[{{ current_user }}] Обновляем плагин zsh-autosuggestions до latest" - name: "[{{ current_user }}] Обновляем плагин zsh-autosuggestions до latest"
git: git:
repo: 'https://github.com/zsh-users/zsh-autosuggestions.git' repo: 'https://github.com/zsh-users/zsh-autosuggestions.git'
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions" dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions"
update: yes update: yes
become_user: "{{ current_user }}" #become_user: "{{ current_user }}"
tags: [update] #tags: [update]
- name: "[{{ current_user }}] Обновляем тему Powerlevel10k до latest" - name: "[{{ current_user }}] Обновляем тему Powerlevel10k до latest"
git: git:
repo: 'https://github.com/romkatv/powerlevel10k.git' repo: 'https://github.com/romkatv/powerlevel10k.git'
dest: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k" dest: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k"
update: yes update: yes
become_user: "{{ current_user }}" become_user: "{{ current_user }}"
tags: [update] tags: [update]
# ========================================== # ==========================================
# БЛОК 3: НАСТРОЙКА КОНФИГУРАЦИОННЫХ ФАЙЛОВ # БЛОК 3: НАСТРОЙКА КОНФИГУРАЦИОННЫХ ФАЙЛОВ
# ========================================== # ==========================================
- name: "Финализация конфигурации"
block:
- name: "[{{ current_user }}] Копируем эталонный конфиг .p10k.zsh"
copy:
src: ../../../files/.p10k.zsh
dest: "{{ user_home }}/.p10k.zsh"
owner: "{{ current_user }}"
group: "{{ current_user }}"
mode: '0644'
#tags: [deploy, update] # Обновляем конфиг p10k в обоих сценариях, если ты решишь его изменить локально
- name: "[{{ current_user }}] Копируем эталонный конфиг .p10k.zsh" - name: "[{{ current_user }}] Генерируем итоговый .zshrc из шаблона"
copy: template:
src: ../../../files/.p10k.zsh src: ../../../templates/.zshrc.j2
dest: "{{ user_home }}/.p10k.zsh" dest: "{{ user_home }}/.zshrc"
owner: "{{ current_user }}" owner: "{{ current_user }}"
group: "{{ current_user }}" group: "{{ current_user }}"
mode: '0644' mode: '0644'
tags: [deploy, update] # Обновляем конфиг p10k в обоих сценариях, если ты решишь его изменить локально #tags: [deploy, update]
- name: "[{{ current_user }}] Генерируем итоговый .zshrc из шаблона" - name: "[{{ current_user }}] Предзагрузка бинарника gitstatusd (убирает тормоза при первом входе)"
template: command: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/install"
src: ../../../templates/.zshrc.j2 args:
dest: "{{ user_home }}/.zshrc" creates: "{{ user_home }}/.cache/gitstatus/gitstatusd-linux-x86_64" # таска пропустится, если бинарник уже на месте
owner: "{{ current_user }}"
group: "{{ current_user }}"
mode: '0644'
tags: [deploy, update]
- name: "[{{ current_user }}] Предзагрузка бинарника gitstatusd (убирает тормоза при первом входе)"
command: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/install"
args:
creates: "{{ user_home }}/.cache/gitstatus/gitstatusd-linux-x86_64" # таска пропустится, если бинарник уже на месте
become_user: "{{ current_user }}" become_user: "{{ current_user }}"
tags: [deploy, update] tags: [deploy, update]