1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Merge pull request #2358 from jvonau/bt-ubu

Bt ubu [Experimental Bluetooth for Ubuntu on Raspberry Pi]
This commit is contained in:
A Holt 2020-04-23 11:37:16 -04:00 committed by GitHub
commit be2d8bda83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View file

@ -20,7 +20,7 @@
- name: Install Bluetooth - only on Raspberry Pi
include_role:
name: bluetooth
when: is_raspbian and bluetooth_install
when: rpi_model != "none" and bluetooth_install
- name: USB_LIB
include_role:

View file

@ -1,4 +1,17 @@
- name: "Install bluetooth packages"
- name: Disable built-in serial uart in /boot/firmware/usercfg.txt on ubuntu
lineinfile:
path: /boot/firmware/usercfg.txt
line: "enable_uart=0"
state: present
when: is_ubuntu and rpi_model != "none"
- name: Install pi-bluetooth package on Ubuntu
package:
name: pi-bluetooth
state: present
when: is_ubuntu and rpi_model != "none"
- name: Install bluetooth packages
package:
name:
- bluetooth
@ -43,7 +56,7 @@
dest: /etc/systemd/system/bluetooth.service
src: /lib/systemd/system/bluetooth.service
- name: Add -C --noplugin=sap to execStart of bluetooth service
- name: Add -C --noplugin=sap to execStart of bluetooth service
lineinfile:
path: /etc/systemd/system/bluetooth.service
regexp: '^ExecStart=/usr/lib/bluetooth/bluetoothd'