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

This commit is contained in:
hogweed1
2026-11-08 01:18:04 +10:00
parent da7b8f9f68
commit 867a015767
3 changed files with 24 additions and 1 deletions

15
files/zprofile Normal file
View File

@@ -0,0 +1,15 @@
# /etc/zsh/zprofile: system-wide .zprofile file for zsh(1).
#
# This file is sourced only for login shells (i.e. shells
# invoked with "-" as the first character of argv[0], and
# shells invoked with the -l flag.)
#
# Global Order: zshenv, zprofile, zshrc, zlogin
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi

View File

@@ -31,6 +31,14 @@
update_cache: yes
tags: [always]
- name: "Копируем эталонный конфиг zprofile для применения /etc/profile.d/* файлов"
copy:
src: ../../../files/zprofile
dest: "/etc/zsh/zprofile"
owner: root
group: root
mode: '0644'
- name: Накат ZSH и плагинов для каждого пользователя
include_tasks: user-tasks.yml
loop: "{{ zsh_users }}"

View File

@@ -129,7 +129,7 @@
owner: "{{ current_user }}"
group: "{{ current_user }}"
mode: '0644'
#tags: [deploy, update] # Обновляем конфиг p10k в обоих сценариях, если ты решишь его изменить локально
#tags: [deploy, update] # Обновляем конфиг p10k в обоих сценариях, если ты решишь его изменить локально
- name: "[{{ current_user }}] Генерируем итоговый .zshrc из шаблона"
template: