Initial commit
This commit is contained in:
19
ansible/roles/vxlan/tasks/main.yml
Normal file
19
ansible/roles/vxlan/tasks/main.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: Create VXLAN interface setup script
|
||||
template:
|
||||
src: setup-vxlan.sh.j2
|
||||
dest: /usr/local/bin/setup-vxlan-{{ gateway_config.lab_name }}.sh
|
||||
mode: '0755'
|
||||
|
||||
- name: Create systemd service for VXLAN
|
||||
template:
|
||||
src: vxlan.service.j2
|
||||
dest: /etc/systemd/system/vxlan-{{ gateway_config.lab_name }}.service
|
||||
notify: reload systemd
|
||||
|
||||
- name: Enable and start VXLAN service
|
||||
systemd:
|
||||
name: vxlan-{{ gateway_config.lab_name }}
|
||||
enabled: yes
|
||||
state: started
|
||||
daemon_reload: yes
|
||||
Reference in New Issue
Block a user