fix em0 driver
This commit is contained in:
parent
8a783d63fb
commit
c5d96917dc
2 changed files with 26 additions and 5 deletions
22
tasks/FreeBSD-em0.yml
Normal file
22
tasks/FreeBSD-em0.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
- name: install the updated intel driver
|
||||
package:
|
||||
name: intel-em-kmod
|
||||
state: present
|
||||
become: true
|
||||
tags:
|
||||
- installation
|
||||
|
||||
- name: activate the updated intel driver
|
||||
lineinfile:
|
||||
path: "/boot/loader.conf"
|
||||
regexp: "^{{ item.name }}"
|
||||
line: "{{ item.name }}={{ item.val }}"
|
||||
become: true
|
||||
loop: "{{ sysctl_setting }}"
|
||||
vars:
|
||||
sysctl_setting:
|
||||
- name: "if_em_updated_load"
|
||||
val: 1
|
||||
tags:
|
||||
- configuration
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
- vars
|
||||
|
||||
- include_tasks: "{{ tweak }}"
|
||||
when: "ansible_system == 'FreeBSD'"
|
||||
when: ansible_facts['os_family'] == "FreeBSD"
|
||||
tags:
|
||||
- installation
|
||||
- configuration
|
||||
|
|
@ -21,12 +21,13 @@
|
|||
- FreeBSD-chromium.yml
|
||||
- FreeBSD-reader.yml
|
||||
- FreeBSD-shortcuts.yml
|
||||
- FreeBSD-em0.yml
|
||||
- keyboard.yml
|
||||
|
||||
- include_tasks: "{{ tweak }}"
|
||||
when: ansible_facts['os_family'] == "Debian"
|
||||
tags:
|
||||
- installation
|
||||
0 - installation
|
||||
- configuration
|
||||
- vars
|
||||
loop_control:
|
||||
|
|
@ -52,9 +53,7 @@
|
|||
- configuration
|
||||
- vars
|
||||
loop_control:
|
||||
loop_var: tweak
|
||||
loop_var: tweaks
|
||||
loop:
|
||||
- "{{ role_path }}/../common/tasks/chip-development.yml"
|
||||
- "{{ role_path }}/../common/tasks/nmap.yml"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue