# Ansibleguy.opnsense.interface: How to define interface assignments?

**URL:** <https://forum.ansible.com/t/ansibleguy-opnsense-interface-how-to-define-interface-assignments/5638>\
**Category:** Get Help\
**Created:** [May 8, 2024, 7:59pm UTC](https://forum.ansible.com/t/ansibleguy-opnsense-interface-how-to-define-interface-assignments/5638 "2024-05-08T19:59:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DengelFred](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@DengelFred](https://forum.ansible.com/u/DengelFred)\
**Post date:** [May 8, 2024, 7:59pm UTC](https://forum.ansible.com/t/ansibleguy-opnsense-interface-how-to-define-interface-assignments/5638/1 "2024-05-08T19:59:33Z")

</div>

Hello,

I can configure a VLAN:

```auto
  - name: Adding VLAN
    ansibleguy.opnsense.interface_vlan:
      description: 'Home Network'
      interface: 'vtnet0'
      device: vlan0.30
      vlan: 30

```

But how can I add this Interface to the “Assignments” view of opnsense? I did not found anything in the documentation…

Thanks a lot!  
Thomas
