Hi,
I got it working with this:

interfaces:
- type: 2
main: 1
useip: 1
ip: "{{ primary_ip4 }}"
dns: ""
details:
version: "{{ snmp_version }}"
bulk: 1
community: "{{ snmp_community }}"