[main:children]
group_1
group_2
[group_1:vars]
testvar='testval1'
[group_2:vars]
testvar='testval2'
group_2---- hosts: group_2 connection: local tasks: - name: print var debug: msg: "{{ testvar }}"On 9/27/19 12:38 PM, J F wrote:
> Hello.
> I have following host file:
> |
> [main:children]
> group_1
> group_2
> [group_1:vars]
> testvar='testval1'
> [group_2:vars]
> testvar='testval2'
> |
>
> Running playbook below I am getting value 'testval1'
> |group_2|
>
> Could, please, someone explain how can I get right value?
Maybe, but please provide the playbook :-).
Regards
Racke
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to