2021-09-01 02:39:22 +02:00
|
|
|
---
|
2023-10-29 01:14:14 +02:00
|
|
|
- name: "Create directory for firmware"
|
2021-09-01 03:00:02 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.file:
|
2021-09-01 14:15:26 +02:00
|
|
|
path: "{{ amdgpu__path_prefix }}/{{ item }}"
|
2023-10-29 01:14:14 +02:00
|
|
|
state: 'directory'
|
|
|
|
mode: '0755'
|
|
|
|
owner: 'root'
|
|
|
|
group: 'root'
|
2023-10-29 02:53:26 +01:00
|
|
|
loop:
|
|
|
|
- "{{ amdgpu__path_suffix }}"
|
2021-09-01 03:00:02 +02:00
|
|
|
|
2023-10-29 01:14:14 +02:00
|
|
|
- name: Download amdgpu firmware
|
2021-09-01 02:39:22 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.get_url:
|
2021-09-01 14:15:26 +02:00
|
|
|
url: "{{ amdgpu__download_prefix }}/{{ item }}"
|
|
|
|
dest: "{{ amdgpu__path_prefix }}/{{ item }}"
|
2023-10-29 01:14:14 +02:00
|
|
|
owner: 'root'
|
|
|
|
group: 'root'
|
|
|
|
mode: '0644'
|
|
|
|
loop: "{{ amdgpu__firmware }}"
|
|
|
|
notify: 'Run update initramfs'
|