Simplify to a single network interface template

This commit is contained in:
2021-04-16 01:40:50 -04:00
parent 8192f76787
commit 44ec2ae197
4 changed files with 18 additions and 20 deletions

View File

@@ -8,13 +8,12 @@
- name: Install network interfaces
template:
src: "{{ network_type }}-interface.cfg"
src: "interface.j2"
dest: "/etc/network/interfaces.d/{{ item.name }}"
notify: reboot_host
loop: "{{ interfaces }}"
notify: reboot_host
- name: Install bridge utilities
apt:
name: bridge-utils
state: present
when: network_type == "bridged"