0
나는 다음과 같은 inventory
파일이 있습니다추출 서버 IP
fst_group2=10.2.0.1
snd_group1=10.1.0.2
대신 내가 얻을 :
[group_01]
g01_h01 ansible_ssh_host='10.1.0.1'
g01_h01 ansible_ssh_host='10.1.0.2'
[group_02]
g02_h01 ansible_ssh_host='10.2.0.1'
g02_h01 ansible_ssh_host='10.2.0.2'
[group_03:children]
group_01
group_02
[group_03:vars]
fst_group2={{groups['group_02'][0]}}
snd_group1={{groups['group_01'][1]}}
내가 내 playbook
변수는 다음 값이 한에서 그 부탁을 :
fst_group2=g02_h01
snd_group1=g01_h02
어떤 아이디어입니까?