ssh-certs hosts.
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:
@@ -9,18 +9,20 @@
|
||||
set_fact:
|
||||
_raw_users: []
|
||||
_raw_projects: []
|
||||
|
||||
|
||||
- name: Сбор пользователей из всех активных групп хоста
|
||||
# Фильтр 'replace('-', '_')' превратит "proj-b" в "proj_b", и Ansible найдет "proj_b_users"
|
||||
set_fact:
|
||||
_raw_users: "{{ _raw_users + (hostvars[inventory_hostname][item ~ '_users'] | default([])) }}"
|
||||
_raw_users: "{{ _raw_users + (hostvars[inventory_hostname][(item | replace('-', '_')) ~ '_users'] | default([])) }}"
|
||||
loop: "{{ group_names }}"
|
||||
when: hostvars[inventory_hostname][item ~ '_users'] is defined
|
||||
when: hostvars[inventory_hostname][(item | replace('-', '_')) ~ '_users'] is defined
|
||||
|
||||
- name: Сбор проектов из всех активных групп хоста
|
||||
set_fact:
|
||||
_raw_projects: "{{ _raw_projects + (hostvars[inventory_hostname][item ~ '_projects'] | default([])) }}"
|
||||
_raw_projects: "{{ _raw_projects + (hostvars[inventory_hostname][(item | replace('-', '_')) ~ '_projects'] | default([])) }}"
|
||||
loop: "{{ group_names }}"
|
||||
when: hostvars[inventory_hostname][item ~ '_projects'] is defined
|
||||
when: hostvars[inventory_hostname][(item | replace('-', '_')) ~ '_projects'] is defined
|
||||
|
||||
|
||||
- name: Фиксация уникальных массивов
|
||||
set_fact:
|
||||
|
||||
Reference in New Issue
Block a user