Ansible: Difference between revisions

Line 90: Line 90:


The array notation is preferred over the dot notation for accessing variables.
The array notation is preferred over the dot notation for accessing variables.
{{ ansible_eth0["ipv4"]["address"] }} over {{ ansible_eth0.ipv4.address }} because some keywords in Python would conflict
<nowiki>{{ ansible_eth0["ipv4"]["address"] }} over {{ ansible_eth0.ipv4.address }}</nowiki> because some keywords in Python would conflict


Reserved words:
Reserved words: