Compare commits

...

7 commits

Author SHA1 Message Date
927589452
8992bc8a68 syntax fix 2019-09-12 21:33:41 +02:00
927589452
c5d96917dc fix em0 driver 2019-09-12 21:28:06 +02:00
927589452
8a783d63fb add freebsd power 2019-09-12 21:27:39 +02:00
927589452
78d169fd8f added debian power 2019-09-12 21:27:19 +02:00
Jens Heinrich
f1b6f5f102 moved msmtp to own role 2019-05-24 09:09:27 +02:00
Jens Heinrich
0d5e6b7c33 removed basic template, as this is reused from the mutt role 2019-05-24 09:08:09 +02:00
Jens Heinrich
e776a3dc0d added msmtp as sendmail 2019-05-24 09:06:52 +02:00
4 changed files with 62 additions and 4 deletions

View file

@ -35,3 +35,8 @@
loop:
- sdpd
- hpsecd
- name: new aliases
become: true
command: newaliases

22
tasks/FreeBSD-em0.yml Normal file
View 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

View file

@ -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 }}"

View file

@ -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"