mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
30 lines
830 B
YAML
30 lines
830 B
YAML
---
|
|
- name: Tune the Bluetooth daemon
|
|
tags:
|
|
- bluetooth
|
|
- configure
|
|
hosts: all
|
|
tasks:
|
|
- name: Enable faster 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 controllers 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
|