Di. 21 Mai 2019 19:07:14 CEST in /home/jens/Development/ansible/roles/tweaks on deathbolt.927589452.space

This commit is contained in:
Jens Heinrich 2019-05-21 19:07:14 +02:00
parent 3b5dabc3aa
commit e650f91311
19 changed files with 304 additions and 16 deletions

View file

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