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:
@@ -13,6 +13,7 @@
|
||||
group_names
|
||||
|
||||
| map('extract', hostvars[inventory_hostname])
|
||||
| select('defined')
|
||||
| map('dict2items') | flatten
|
||||
| selectattr('key', 'match', '.*_users$')
|
||||
|
||||
@@ -26,6 +27,7 @@
|
||||
group_names
|
||||
|
||||
| map('extract', hostvars[inventory_hostname])
|
||||
| select('defined')
|
||||
| map('dict2items') | flatten
|
||||
| selectattr('key', 'match', '.*_projects$')
|
||||
|
||||
@@ -33,6 +35,11 @@
|
||||
| unique
|
||||
}}
|
||||
|
||||
- name: Проверка на случай отсутствия переменных
|
||||
set_fact:
|
||||
project_users: "{{ project_users | default([]) }}"
|
||||
allowed_projects: "{{ allowed_projects | default([]) }}"
|
||||
|
||||
- name: Дебаг получившейся матрицы доступов (Опционально)
|
||||
debug:
|
||||
msg: "Хост {{ inventory_hostname }} получит юзеров {{ project_users }} и принципалы {{ allowed_projects }}"
|
||||
|
||||
Reference in New Issue
Block a user