СМ
all:
hosts:
- hosta
- hostb
children:
dotnet:
hosts:
- hosta
Size: a a a
СМ
all:
hosts:
- hosta
- hostb
children:
dotnet:
hosts:
- hosta
СМ
АС
Invalid "hosts" entry for "all" group, requires a dictionary, found
"<class 'ansible.parsing.yaml.objects.AnsibleSequence'>" instead.
СМ
АС
АС
АС
АС
АС
АС
АС
all:
hosts:
hosta:
hostb:
children:
dotnet:
hosts:
hosta:
A
СМ

ММ
ММ
---
- hosts: group1
become: yes
gather_facts: yes
tasks:
- name: Create user for new DB
...
- hosts: group2
become: yes
gather_facts: yes
tasks:
- name: Create user for new DBA
АС
АС
roles:
- role: common-system
- role: dotnet
when: '"dotnet" in group_names'