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:54:10 +10:00
parent bf2a8c5644
commit 1094d53c60

View File

@@ -9,51 +9,52 @@
set_fact: set_fact:
#user_home: "{{ getent_passwd[current_user] }}" #user_home: "{{ getent_passwd[current_user] }}"
user_home: "{{ '/root' if current_user == 'root' else '/home/' ~ current_user }}" user_home: "{{ '/root' if current_user == 'root' else '/home/' ~ current_user }}"
tags: [always] #tags: [always]
- name: "[{{ current_user }}] Меняем дефолтный shell на /bin/zsh" - name: "[{{ current_user }}] Меняем дефолтный shell на /bin/zsh"
user: user:
name: "{{ current_user }}" name: "{{ current_user }}"
shell: /bin/zsh shell: /bin/zsh
tags: [deploy] #tags: [deploy]
# ========================================== # ==========================================
# БЛОК 1: ПЕРВИЧНАЯ РАСКАТКА (БЫСТРЫЙ CLONE) # БЛОК 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" - name: "[{{ current_user }}] Клонируем плагин zsh-syntax-highlighting"
git: git:
repo: 'https://github.com/ohmyzsh/ohmyzsh.git' repo: 'https://github.com/zsh-users/zsh-syntax-highlighting.git'
dest: "{{ user_home }}/.oh-my-zsh" 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-syntax-highlighting" - name: "[{{ current_user }}] Клонируем плагин zsh-autosuggestions"
git: git:
repo: 'https://github.com/zsh-users/zsh-syntax-highlighting.git' repo: 'https://github.com/zsh-users/zsh-autosuggestions.git'
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting" 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 }}] Клонируем плагин zsh-autosuggestions" - name: "[{{ current_user }}] Клонируем тему Powerlevel10k"
git: git:
repo: 'https://github.com/zsh-users/zsh-autosuggestions.git' repo: 'https://github.com/romkatv/powerlevel10k.git'
dest: "{{ user_home }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions" dest: "{{ user_home }}/.oh-my-zsh/custom/themes/powerlevel10k"
depth: 1 depth: 1
update: no 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
become_user: "{{ current_user }}" become_user: "{{ current_user }}"
tags: [deploy] tags: [deploy]