1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_amdgpu_firmware.git synced 2024-08-16 14:59:49 +02:00
ansible_role_amdgpu_firmware/tasks/kernel_firmware_download.yml

22 lines
558 B
YAML
Raw Normal View History

2021-09-01 02:39:22 +02:00
---
2021-09-01 14:15:26 +02:00
- name: "create {{ amdgpu__path_prefix }}/{{ amdgpu__path_suffix }}"
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 }}"
2021-09-01 03:00:02 +02:00
state: directory
mode: 0755
owner: root
group: root
2021-09-01 14:15:26 +02:00
with_items: "{{ amdgpu__path_suffix }}"
2021-09-01 03:00:02 +02:00
2021-09-01 14:15:26 +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 }}"
2021-09-01 02:39:22 +02:00
owner: root
group: root
mode: 0644
2021-09-01 14:15:26 +02:00
with_items: "{{ amdgpu__firmware }}"
2021-09-01 02:39:22 +02:00
notify: update initrd