0 votes
in Ansible by
Which option will give you an error while accessing your complex variable?

{{ ansible_eth0["ipv4"]["address"] }}

{{ ansible_eth0['ipv4']['address'] }}

{{ ansible_eth0.ipv4.address }}

{{ ansible_eth0[ipv4][address] }}

1 Answer

0 votes
by
{{ ansible_eth0[ipv4][address] }}

Related questions

0 votes
asked Sep 14, 2020 in PMP by SakshiSharma
0 votes
asked Oct 7, 2020 in Ansible by Robindeniel
...