Di. 21 Mai 2019 19:07:14 CEST in /home/jens/Development/ansible/roles/tweaks on deathbolt.927589452.space
This commit is contained in:
parent
3b5dabc3aa
commit
e650f91311
19 changed files with 304 additions and 16 deletions
26
tasks/Archlinux-power.yml
Normal file
26
tasks/Archlinux-power.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
- name: install power managment utilities
|
||||
package:
|
||||
name:
|
||||
- acpid
|
||||
- tlp
|
||||
- tp-smapi
|
||||
- acpi-call
|
||||
- powertop
|
||||
- smartmontools
|
||||
- x86_energy_perf_policy
|
||||
- lsb-release
|
||||
|
||||
state: present
|
||||
become: true
|
||||
tags:
|
||||
- installation
|
||||
|
||||
- name: enable tlp
|
||||
service:
|
||||
name: tlp
|
||||
state: started
|
||||
become: true
|
||||
tags:
|
||||
- services
|
||||
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
---
|
||||
- include_vars: bluetooth-devices.yml
|
||||
tags:
|
||||
- vars
|
||||
|
||||
- name: install pkg for bluetooth audio
|
||||
package:
|
||||
name: virtual_oss
|
||||
|
|
@ -7,17 +11,39 @@
|
|||
tags:
|
||||
- install
|
||||
|
||||
- name: load the bt security module
|
||||
- name: generate BT configs
|
||||
template:
|
||||
src: "{{ BT_TEMPLATE.src }}"
|
||||
dest: "{{ BT_TEMPLATE.dest }}"
|
||||
loop_control:
|
||||
loop_var: BT_TEMPLATE
|
||||
tags:
|
||||
- configuration
|
||||
become: true
|
||||
loop:
|
||||
- src: bluetooth_hcsecd.conf.j2
|
||||
dest: "/etc/bluetooth/hcsecd.conf"
|
||||
|
||||
# https://gist.github.com/david-moran/1a9e4f910749d66d93e3fa71f3f68c98
|
||||
# https://www.freebsd.org/doc/handbook/network-bluetooth.html
|
||||
|
||||
- name: load the bt modules
|
||||
lineinfile:
|
||||
path: "/etc/rc.conf"
|
||||
regexp: "^{{ item.name }}"
|
||||
line: "{{ item.name }}={{ item.val }}"
|
||||
become: true
|
||||
tags:
|
||||
- configuration
|
||||
loop: "{{ sysctl_setting }}"
|
||||
vars:
|
||||
sysctl_setting:
|
||||
- name: "hcsecd_enable"
|
||||
val: "YES"
|
||||
- name: "sdpd_enable"
|
||||
val: "YES"
|
||||
- name: "bthidd_enable"
|
||||
val: "YES"
|
||||
|
||||
- name: load the bt module
|
||||
lineinfile:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
- include_vars: local_unbound.yml
|
||||
|
||||
- name: "save dhclients dns and dhcp in a file"
|
||||
lineinfile:
|
||||
path: "/etc/resolvconf.conf"
|
||||
|
|
@ -27,6 +29,22 @@
|
|||
- name: "local_unbound_enable"
|
||||
val: "YES"
|
||||
|
||||
- name: "get opennic hints"
|
||||
shell: "{{ hints_opennic_cmd }}"
|
||||
become: true
|
||||
tags:
|
||||
- installation
|
||||
- configuration
|
||||
|
||||
- name: "get named hints"
|
||||
get_url:
|
||||
url: "{{ hints_named_url }}"
|
||||
dest: "{{ hints_named }}"
|
||||
become: true
|
||||
tags:
|
||||
- installation
|
||||
- configuration
|
||||
|
||||
- name: manage resolv.conf
|
||||
template:
|
||||
dest: /etc/resolv.conf
|
||||
|
|
@ -35,20 +53,14 @@
|
|||
tags:
|
||||
- configuration
|
||||
|
||||
- name: "generate access control"
|
||||
- name: "generate configs"
|
||||
template:
|
||||
dest: "/etc/unbound/conf.d/access_control.conf"
|
||||
src: "templates/access_control.j2"
|
||||
become: true
|
||||
tags:
|
||||
- configuration
|
||||
notify: "restart local_unbound"
|
||||
|
||||
- name: "generate overlay for local dns"
|
||||
template:
|
||||
dest: "/etc/unbound/conf.d/local_resolver.conf"
|
||||
src: "templates/local_resolver.j2"
|
||||
src: "{{ config.src }}"
|
||||
dest: "{{ config.dest }}"
|
||||
become: true
|
||||
loop: "{{ local_unbound_files }}"
|
||||
loop_control:
|
||||
loop_var: config
|
||||
tags:
|
||||
- configuration
|
||||
notify: "restart local_unbound"
|
||||
|
|
|
|||
|
|
@ -45,10 +45,10 @@
|
|||
- "[system=10]"
|
||||
- "add path 'unlpt*' mode 0660 group cups"
|
||||
- "add path 'ulpt*' mode 0660 group cups"
|
||||
- "add path 'lpt*' mode 0660 group cupsd_enable"
|
||||
- "add path 'lpt*' mode 0660 group cups"
|
||||
# add path 'usb/X.Y.Z' mode 0660 group cups
|
||||
# https://www.freebsd.org/doc/en/articles/cups/printing-cups-configuring-server.html
|
||||
- add path 'usb/0.7.*' mode 0660 group cups
|
||||
- "add path 'usb/0.7.*' mode 0660 group cups"
|
||||
tags:
|
||||
- configuration
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
---
|
||||
- include: "{{ role_path }}/tasks/vars.yml"
|
||||
- include: "{{ role_path }}/../common/tasks/vars.yml"
|
||||
tags:
|
||||
- vars
|
||||
|
||||
- include_tasks: "{{ tweak }}"
|
||||
when: "ansible_system == 'FreeBSD'"
|
||||
tags:
|
||||
- installation
|
||||
- configuration
|
||||
|
|
@ -21,6 +22,17 @@
|
|||
- FreeBSD-reader.yml
|
||||
- FreeBSD-shortcuts.yml
|
||||
- keyboard.yml
|
||||
|
||||
- include_tasks: "{{ tweaks }}"
|
||||
when: "ansible_system == 'FreeBSD'"
|
||||
tags:
|
||||
- installation
|
||||
- configuration
|
||||
- vars
|
||||
loop_control:
|
||||
loop_var: tweak
|
||||
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