Files
oam/ansible/bluetooth.tune.yml
2022-05-08 01:39:17 +02:00

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