initial commit
This commit is contained in:
25
ansible/roles/network-bridge/tasks/main.yml
Normal file
25
ansible/roles/network-bridge/tasks/main.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
- name: Install bridge utilities
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- bridge-utils
|
||||
- ifupdown2
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Configure vmbr0 bridge (ifupdown2)
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/network/interfaces.d/vmbr0
|
||||
content: |
|
||||
auto vmbr0
|
||||
iface vmbr0 inet manual
|
||||
bridge_ports none
|
||||
bridge_stp off
|
||||
bridge_fd 0
|
||||
bridge_vlan_aware yes
|
||||
notify: restart networking
|
||||
|
||||
handlers:
|
||||
- name: restart networking
|
||||
ansible.builtin.service:
|
||||
name: networking
|
||||
state: restarted
|
||||
Reference in New Issue
Block a user