some preps to make lbs.
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1s

This commit is contained in:
hogweed1
2026-08-11 23:30:20 +10:00
parent bee9fe3c03
commit 0115f2a35f
4 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
---
additional_users:
- rsync

View File

@@ -95,6 +95,8 @@ angie:
speaking-slut.guaranteedstruggle.host: speaking-slut.guaranteedstruggle.host:
pegaprox.guaranteedstruggle.host: pegaprox.guaranteedstruggle.host:
victorialogs.guaranteedstruggle.host: victorialogs.guaranteedstruggle.host:
lb1.guaranteedstruggle.host:
lb2.guaranteedstruggle.host:
#seafile.guaranteedstruggle.host: #seafile.guaranteedstruggle.host:
docker: docker:

View File

View File

@@ -13,7 +13,7 @@
- name: Сбор пользователей из всех активных групп хоста - name: Сбор пользователей из всех активных групп хоста
# Фильтр 'replace('-', '_')' превратит "proj-b" в "proj_b", и Ansible найдет "proj_b_users" # Фильтр 'replace('-', '_')' превратит "proj-b" в "proj_b", и Ansible найдет "proj_b_users"
set_fact: set_fact:
_raw_users: "{{ _raw_users + (hostvars[inventory_hostname][(item | replace('-', '_')) ~ '_users'] | default([])) }}" _raw_users: "{{ _raw_users + (additional_users | default([])) }} + (hostvars[inventory_hostname][(item | replace('-', '_')) ~ '_users'] | default([])) }}"
loop: "{{ group_names }}" loop: "{{ group_names }}"
when: hostvars[inventory_hostname][(item | replace('-', '_')) ~ '_users'] is defined when: hostvars[inventory_hostname][(item | replace('-', '_')) ~ '_users'] is defined