homelab/roles/base/tasks/network.yml

16 lines
386 B
YAML
Raw Normal View History

2020-07-09 21:54:15 -04:00
- name: Install network interfaces file
2023-05-03 23:42:55 -04:00
ansible.builtin.copy:
2020-07-09 21:54:15 -04:00
src: network-interfaces.cfg
dest: /etc/network/interfaces
owner: root
group: root
mode: '0644'
- name: Install network interfaces
2023-05-03 23:42:55 -04:00
ansible.builtin.template:
src: "interface.j2"
dest: "/etc/network/interfaces.d/{{ item.name }}"
2023-10-20 21:30:25 -04:00
mode: "400"
loop: "{{ interfaces }}"
notify: reboot_host