# 011 Display variables iocage_*

Extending example 010.

## Synopsis

Display all variables iocage_* created by the inventory plugin.

## Playbook pb-vars-all.yml

    - hosts: all

      tasks:

        - debug:
            msg: |
              inventory_hostname: {{ inventory_hostname }}
              ansible_host: {{ ansible_host }}

              {% for var in q('varnames', 'iocage_*') %}
              {{ var }}: {{ lookup('vars', var) }}
              {% endfor %}

## Playbook output

    (env) > ansible-playbook -i iocage.yml pb-vars-all.yml -l test_113

    PLAY [test] ********************************************************************

    TASK [debug] *******************************************************************
    ok: [test_113] =>
      msg: |-
        inventory_hostname: test_113
        ansible_host: 10.1.0.113

        iocage_jid: 60
        iocage_boot: off
        iocage_state: up
        iocage_type: jail
        iocage_release: 14.1-RELEASE-p6
        iocage_ip4: 10.1.0.113
        iocage_ip6: -
        iocage_template: ansible_client
        iocage_basejail: yes

    PLAY RECAP *********************************************************************
    test_113: ok=1    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0