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,26 +9,27 @@
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" - 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:
@@ -36,8 +37,8 @@
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:
@@ -45,8 +46,8 @@
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: