14 lines
480 B
YAML
14 lines
480 B
YAML
---
|
|
- name: Create VXLAN interface
|
|
community.routeros.command:
|
|
commands:
|
|
- /interface vxlan add name="vxlan{{ gateway_config.vni }}" vni={{ gateway_config.vni }} interface="wg-{{ gateway_config.lab_name }}" port=4789
|
|
|
|
- name: Configure VXLAN vteps
|
|
community.routeros.command:
|
|
commands:
|
|
- /interface vxlan vteps add interface="vxlan{{ gateway_config.vni }}" remote-ip={{ peer.wg_ip }}
|
|
loop: "{{ gateway_config.peers }}"
|
|
loop_control:
|
|
loop_var: peer
|