mirror of
https://github.com/roles-ansible/ansible_role_amdgpu_firmware.git
synced 2024-08-16 14:59:49 +02:00
improve running and docs
This commit is contained in:
parent
0a889fd362
commit
542bd00f93
4 changed files with 30 additions and 5 deletions
18
README.md
18
README.md
|
@ -1,2 +1,16 @@
|
||||||
# ansible_role_template
|
ansible role rtl_nic_firmware
|
||||||
Template for Ansible roles
|
===============================
|
||||||
|
|
||||||
|
Ansible role to deploy ``rtl_nic`` Firmware for APU.
|
||||||
|
|
||||||
|
This role is only running at:
|
||||||
|
```yaml
|
||||||
|
when:
|
||||||
|
- ansible_board_name == 'APU'
|
||||||
|
- ansible_product_name == 'APU'
|
||||||
|
```
|
||||||
|
|
||||||
|
It will download the defined Firmware Files from the ``rtl_nic__firmware`` variable.
|
||||||
|
Then we run ``update-initramfs -k all -u``.
|
||||||
|
|
||||||
|
You can change the downloaded firmware file names by modifying the default variables.
|
||||||
|
|
|
@ -24,7 +24,8 @@ rtl_nic__firmware:
|
||||||
- 'rtl_nic/rtl8168d-2.fw'
|
- 'rtl_nic/rtl8168d-2.fw'
|
||||||
- 'rtl_nic/rtl8168d-1.fw'
|
- 'rtl_nic/rtl8168d-1.fw'
|
||||||
|
|
||||||
rtl_nic__path: '/lib/firmware'
|
rtl_nic__path_prefix: '/lib/firmware'
|
||||||
|
rtl_nic__path_suffix: 'rtl_nic'
|
||||||
|
|
||||||
# should we do a version check? (recomended)
|
# should we do a version check? (recomended)
|
||||||
submodules_versioncheck: false
|
submodules_versioncheck: false
|
||||||
|
|
|
@ -1,9 +1,19 @@
|
||||||
---
|
---
|
||||||
|
- 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 }}"
|
||||||
|
|
||||||
- name: download rtl_nic firmware
|
- name: download rtl_nic firmware
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ rtl_nic__download_prefix }}/{{ item }}"
|
url: "{{ rtl_nic__download_prefix }}/{{ item }}"
|
||||||
dest: "{{ rtl_nic__path }}/{{ item }}"
|
dest: "{{ rtl_nic__path_prefix }}/{{ item }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
# versionscheck
|
# versionscheck
|
||||||
playbook_version_number: 3
|
playbook_version_number: 4
|
||||||
playbook_version_path: 'do1jlr.rtl_nic_firmware.version'
|
playbook_version_path: 'do1jlr.rtl_nic_firmware.version'
|
||||||
|
|
Loading…
Reference in a new issue