some preps to make lbs.
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 0s
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
- name: Сбор пользователей из всех активных групп хоста
|
||||
# Фильтр 'replace('-', '_')' превратит "proj-b" в "proj_b", и Ansible найдет "proj_b_users"
|
||||
set_fact:
|
||||
_raw_users: "{{ _raw_users + (additional_users | default([])) }} + (hostvars[inventory_hostname][(item | replace('-', '_')) ~ '_users'] | default([])) }}"
|
||||
_raw_users: "{{ _raw_users + (additional_users | default([])) + (hostvars[inventory_hostname][(item | replace('-', '_')) ~ '_users'] | default([])) }}"
|
||||
loop: "{{ group_names }}"
|
||||
when: hostvars[inventory_hostname][(item | replace('-', '_')) ~ '_users'] is defined
|
||||
|
||||
|
||||
Reference in New Issue
Block a user