mirror of
https://git.bibube.com/nguyen/raspi.git
synced 2024-11-22 22:42:14 +00:00
22 lines
568 B
YAML
22 lines
568 B
YAML
---
|
|
- name: Disable Wi-Fi and Bluetooth on Raspberry Pi
|
|
hosts: all
|
|
become: yes
|
|
tasks:
|
|
- name: Ensure Wi-Fi is disabled in config.txt
|
|
lineinfile:
|
|
path: /boot/firmware/config.txt
|
|
regexp: '^#?dtoverlay=-disable-wifi'
|
|
line: 'dtoverlay=-disable-wifi'
|
|
state: present
|
|
create: yes
|
|
|
|
- name: Ensure Bluetooth is disabled in config.txt
|
|
lineinfile:
|
|
path: /boot/firmware/config.txt
|
|
regexp: '^#?dtoverlay=-disable-bt'
|
|
line: 'dtoverlay=-disable-bt'
|
|
state: present
|
|
create: yes
|
|
|