2021-09-01 02:39:22 +02:00
|
|
|
---
|
2021-09-01 03:00:02 +02:00
|
|
|
- name: "create {{ rtl_nic__path_prefix }}/{{ rtl_nic__path_suffix }}"
|
|
|
|
become: true
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ rtl_nic__path_prefix }}/{{ item }}"
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
with_items: "{{ rtl_nic__path_suffix }}"
|
|
|
|
|
2021-09-01 02:39:22 +02:00
|
|
|
- name: download rtl_nic firmware
|
|
|
|
become: true
|
|
|
|
ansible.builtin.get_url:
|
|
|
|
url: "{{ rtl_nic__download_prefix }}/{{ item }}"
|
2021-09-01 03:00:02 +02:00
|
|
|
dest: "{{ rtl_nic__path_prefix }}/{{ item }}"
|
2021-09-01 02:39:22 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
with_items: "{{ rtl_nic__firmware }}"
|
|
|
|
notify: update initrd
|