# Jinga2 template and numeric dict names

**URL:** <https://forum.ansible.com/t/jinga2-template-and-numeric-dict-names/20581>\
**Category:** Ansible Project\
**Created:** [February 15, 2016, 11:50am UTC](https://forum.ansible.com/t/jinga2-template-and-numeric-dict-names/20581 "2016-02-15T11:50:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_W](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@Michael\_W](https://forum.ansible.com/u/Michael_W)\
**Post date:** [February 15, 2016, 11:50am UTC](https://forum.ansible.com/t/jinga2-template-and-numeric-dict-names/20581/1 "2016-02-15T11:50:44Z")

</div>

```auto
Hello, given the following dict i want to access the ipaddr value within a jinja2 template

```

```auto

```

```auto
network:
   nics:
      '0':
         ipaddr: 10.251.66.242
         netmask: 255.255.255.0

```

```auto

```

```auto
none of the following works:

```

```auto

```

```auto
{% data.network.nics.0.ipaddr %}

```

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 15, 2016, 5:34pm UTC](https://forum.ansible.com/t/jinga2-template-and-numeric-dict-names/20581/2 "2016-02-15T17:34:14Z")

</div>

{{ data.network.nics[‘0’].ipaddr }} , {% %} is for commands
