mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-25 04:44:25 +00:00
30 lines
846 B
YAML
30 lines
846 B
YAML
---
|
|
- name: Tune the Bluetooth daemon
|
|
tags:
|
|
- bluetooth
|
|
- configure
|
|
hosts: all
|
|
tasks:
|
|
- name: Enable faster Bluetooth connection to devices
|
|
when: ansible_system == 'Linux'
|
|
become: true
|
|
ansible.builtin.lineinfile:
|
|
path: "/etc/bluetooth/main.conf"
|
|
line: "FastConnectable = true"
|
|
regexp: '^.*FastConnectable\s*=\s*.*$'
|
|
insertafter: '^[General]$'
|
|
mode: '0644'
|
|
create: true
|
|
backup: true
|
|
- name: Enable all Bluetooth devices as soon as they are found
|
|
when: ansible_system == 'Linux'
|
|
become: true
|
|
ansible.builtin.lineinfile:
|
|
path: "/etc/bluetooth/main.conf"
|
|
line: "AutoEnable = true"
|
|
regexp: '^.*AutoEnable\s*=\s*.*$'
|
|
insertafter: '^[Policy]$'
|
|
mode: '0644'
|
|
create: true
|
|
backup: true
|