Files
ansible-repo/playbooks/software/zsh/deploy_zsh.yml
hogweed1 6bd0319d26
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s
well,
2026-11-05 02:33:52 +10:00

40 lines
1.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: "Этап 2: Деплой ZSH + OMZ + P10k"
hosts: all
become: yes
vars:
# Укажи здесь root и своего основного пользователя
zsh_users:
- "root"
- "hogweed1"
# Вставь сюда сгенерированный токен из Gitea
gitea_token: "0e2d23940d1862ae1558476f39565cd5bb2bcd88"
# Базовый адрес твоей организации/юзера в Gitea (БЕЗ http://)
gitea_base: "git.guaranteedstruggle.host/hackerspace"
# Формируем ссылки с токеном. В таком формате Git пролетает авторизацию без вопросов
repo_omz: "https://{{ gitea_token }}@{{ gitea_base }}/ohmyzsh_mirror.git"
repo_p10k: "https://{{ gitea_token }}@{{ gitea_base }}/powerlevel10k_mirror.git"
repo_syntax: "https://{{ gitea_token }}@{{ gitea_base }}/zsh-syntax-highlighting_mirror.git"
repo_suggest: "https://{{ gitea_token }}@{{ gitea_base }}/zsh-autosuggestions_mirror.git"
tasks:
- name: Установка системных пакетов (zsh и git)
apt:
name:
- zsh
#- git
state: present
update_cache: yes
tags: [always]
- name: Накат ZSH и плагинов для каждого пользователя
include_tasks: user_tasks.yml
loop: "{{ zsh_users }}"
loop_control:
loop_var: current_user
tags: [always]