some preps to make lbs.
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1s
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
additional_users:
|
||||||
|
- rsync
|
||||||
@@ -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:
|
||||||
|
|||||||
0
files/angie/lb1.guaranteedstruggle.host
Normal file
0
files/angie/lb1.guaranteedstruggle.host
Normal 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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user