homelab/roles/base/tasks/main.yml

27 lines
597 B
YAML

- name: Install useful software
apt:
name: ["vim", "wget"]
state: present
- name: Install network interfaces file
copy:
src: network-interfaces.cfg
dest: /etc/network/interfaces
owner: root
group: root
mode: '0644'
when: manage_network
- name: Install network interfaces
template:
src: "{{ network_type }}-interface.cfg"
dest: "/etc/network/interfaces.d/{{ ip_inter }}"
notify: reboot_host
when: manage_network
- name: Install bridge utilities
apt:
name: bridge-utils
state: present
when: network_type == "bridged" and manage_network