Don’t stop now! The next scenario will only take about 10 minutes to complete.

Ansible choral |1| hostvars and inventory_hostname

hostvars and inventory_hostname

You can get a list of all the variables associated with the current host with the help of hostvars and inventory_hostname variables.

```

  • name: built-in variables hosts: all tasks:
    • debug: var=hostvars[inventory_hostname] ```