mirror of
https://git.bibube.com/nguyen/raspi.git
synced 2024-11-22 22:42:14 +00:00
Disable Leds
This commit is contained in:
28
playbooks/disable_leds.yml
Normal file
28
playbooks/disable_leds.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
- name: Disable Wi-Fi and Bluetooth on Raspberry Pi
|
||||||
|
hosts: all
|
||||||
|
become: yes
|
||||||
|
tasks:
|
||||||
|
- name: Ensure Led disabled in config.txt
|
||||||
|
lineinfile:
|
||||||
|
path: /boot/firmware/config.txt
|
||||||
|
regexp: '^#?dtparam=act_led_trigger=none'
|
||||||
|
line: 'dtparam=act_led_trigger=none'
|
||||||
|
state: present
|
||||||
|
create: yes
|
||||||
|
|
||||||
|
- name: Ensure Act Led is disabled in config.txt
|
||||||
|
lineinfile:
|
||||||
|
path: /boot/firmware/config.txt
|
||||||
|
regexp: '^#?dtparam=act_led_activelow=off'
|
||||||
|
line: 'dtparam=act_led_activelow=off'
|
||||||
|
state: present
|
||||||
|
create: yes
|
||||||
|
|
||||||
|
- name: Ensure Pwr Led is disabled in config.txt
|
||||||
|
lineinfile:
|
||||||
|
path: /boot/firmware/config.txt
|
||||||
|
regexp: '^#?dtparam=pwr_led_activelow=off'
|
||||||
|
line: 'dtparam=pwr_led_activelow=off'
|
||||||
|
state: present
|
||||||
|
create: yes
|
||||||
Reference in New Issue
Block a user