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:
|
2021-04-16 05:40:50 +00:00
|
|
|
src: "interface.j2"
|
2021-04-16 02:52:43 +00:00
|
|
|
dest: "/etc/network/interfaces.d/{{ item.name }}"
|
2023-05-04 05:20:22 +00:00
|
|
|
mode: 0400
|
2021-04-16 02:52:43 +00:00
|
|
|
loop: "{{ interfaces }}"
|
2021-04-16 05:40:50 +00:00
|
|
|
notify: reboot_host
|