homelab/roles/base/tasks/network.yml

16 lines
385 B
YAML
Raw Permalink Normal View History

2020-07-10 01:54:15 +00:00
- name: Install network interfaces file
2023-05-04 03:42:55 +00:00
ansible.builtin.copy:
2020-07-10 01:54:15 +00:00
src: network-interfaces.cfg
dest: /etc/network/interfaces
owner: root
group: root
mode: '0644'
- name: Install network interfaces
2023-05-04 03:42:55 +00:00
ansible.builtin.template:
src: "interface.j2"
dest: "/etc/network/interfaces.d/{{ item.name }}"
2023-05-04 05:44:18 +00:00
mode: 0400
loop: "{{ interfaces }}"
notify: reboot_host