summaryrefslogtreecommitdiff
path: root/roles/slim/raspbian
diff options
context:
space:
mode:
Diffstat (limited to 'roles/slim/raspbian')
-rw-r--r--roles/slim/raspbian/tasks/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/slim/raspbian/tasks/main.yml b/roles/slim/raspbian/tasks/main.yml
index d943d6aa..39b0c66f 100644
--- a/roles/slim/raspbian/tasks/main.yml
+++ b/roles/slim/raspbian/tasks/main.yml
@@ -1,4 +1,20 @@
---
+- name: remove legacy device-tree overlays for rpi3
+ loop:
+ - pi3-disable-wifi
+ - pi3-disable-bt
+ lineinfile:
+ path: /boot/config.txt
+ line: "dtoverlay={{ item }}"
+ state: absent
+
+- name: enable/disable bluetooh
+ lineinfile:
+ path: /boot/config.txt
+ line: dtoverlay=disable-bt
+ insertafter: '^\[all\]'
+ state: "{{ raspbian_disable_bluetooth | ternary('present', 'absent') }}"
+
- name: enable/disable wifi
lineinfile:
path: /boot/config.txt