Compare commits
7 commits
e650f91311
...
8992bc8a68
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8992bc8a68 | ||
|
|
c5d96917dc | ||
|
|
8a783d63fb | ||
|
|
78d169fd8f | ||
|
|
f1b6f5f102 | ||
|
|
0d5e6b7c33 | ||
|
|
e776a3dc0d |
4 changed files with 62 additions and 4 deletions
|
|
@ -35,3 +35,8 @@
|
|||
loop:
|
||||
- sdpd
|
||||
- hpsecd
|
||||
|
||||
- name: new aliases
|
||||
become: true
|
||||
command: newaliases
|
||||
|
||||
|
|
|
|||
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
|
||||
|
|
@ -42,6 +42,16 @@
|
|||
tags:
|
||||
- configuration
|
||||
|
||||
- name: FreeBSD power| tweaks for use as a desktop
|
||||
blockinfile:
|
||||
path: "/boot/loader.conf"
|
||||
block: "{{ lookup('file', 'block-FreeBSD-power-deskop.j2') }}"
|
||||
marker: "# {mark} ANSIBLE MANAGED BLOCK tweaks for desktop"
|
||||
become: true
|
||||
tags:
|
||||
- configuration
|
||||
|
||||
|
||||
- name: setup suspend on lid close
|
||||
sysctl:
|
||||
name: "{{ item.name }}"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
- vars
|
||||
|
||||
- include_tasks: "{{ tweak }}"
|
||||
when: "ansible_system == 'FreeBSD'"
|
||||
when: ansible_facts['os_family'] == "FreeBSD"
|
||||
tags:
|
||||
- installation
|
||||
- configuration
|
||||
|
|
@ -21,8 +21,31 @@
|
|||
- 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
|
||||
- configuration
|
||||
- vars
|
||||
loop_control:
|
||||
loop_var: tweak
|
||||
loop:
|
||||
- Debian-power.yml
|
||||
|
||||
- include_tasks: "{{ tweak }}"
|
||||
when: ansible_facts['os_family'] == "Archlinux"
|
||||
tags:
|
||||
- installation
|
||||
- configuration
|
||||
- vars
|
||||
loop_control:
|
||||
loop_var: tweak
|
||||
loop:
|
||||
- Archlinux-power.yml
|
||||
|
||||
- include_tasks: "{{ tweaks }}"
|
||||
when: "ansible_system == 'FreeBSD'"
|
||||
tags:
|
||||
|
|
@ -30,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