# Proxmox network interface configuration: template error while templating string: Encountered unknown tag 'item'

**URL:** <https://forum.ansible.com/t/proxmox-network-interface-configuration-template-error-while-templating-string-encountered-unknown-tag-item/23112>\
**Category:** Ansible Project\
**Created:** [November 27, 2016, 11:32am UTC](https://forum.ansible.com/t/proxmox-network-interface-configuration-template-error-while-templating-string-encountered-unknown-tag-item/23112 "2016-11-27T11:32:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samuel\_Vandamme](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@Samuel\_Vandamme](https://forum.ansible.com/u/Samuel_Vandamme)\
**Post date:** [November 27, 2016, 11:32am UTC](https://forum.ansible.com/t/proxmox-network-interface-configuration-template-error-while-templating-string-encountered-unknown-tag-item/23112/1 "2016-11-27T11:32:27Z")

</div>

Hi everyone

I’m trying to setup multiple proxmox network interfaces for my containers with Ansible.

Here is the code that I’m using. You can see in the netif property that I sometimes want to add a second interface to the container.

`

- name: Create instances  
proxmox:  
vmid={{ item.id }}  
node=‘simpsons’  
api\_user=‘{{ proxmox.api.username }}’  
api\_password=‘{{ proxmox.api.password }}’  
api\_host=‘localhost’  
password=‘{{ item.hostname | b64encode | to\_uuid }}’  
hostname=‘{{ item.hostname }}’  
onboot=yes  
memory={{ item.memory }}  
ostemplate=‘local:vztmpl/debian-8.0-standard\_8.4-1\_amd64.tar.gz’  
netif=’  
{“net0”:“name=eth0,gw=10.100.0.1,ip=10.100.0.{{ item.id }}/24,bridge=vmbr0”}  
{% item.public\_ip is defined %}
