Initial commit
This commit is contained in:
13
ansible/roles/mikrotik-vxlan/tasks/main.yml
Normal file
13
ansible/roles/mikrotik-vxlan/tasks/main.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user