Skip to content

Commit 3d372ce

Browse files
committed
Update set-keyboard-backlight.yml
1 parent 7b87ed9 commit 3d372ce

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

deploy/roles/initialize/tasks/hardware/set-keyboard-backlight.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@
3838
file:
3939
path: /etc/profile.d/set_keyboard_backlight.sh
4040
mode: '0755'
41-
4241
when:
4342
- not script_exists.stat.exists
44-
- backlight_path.stdout == ""
43+
- not backlight_path.stdout == ""
4544

4645
- name: "{{ item | basename | splitext | first }} - Final block excution"
4746
block:
@@ -50,12 +49,7 @@
5049
path: /etc/profile.d/set_keyboard_backlight.sh
5150
register: script_exists
5251

53-
- name: "{{ item | basename | splitext | first }} - Find the keyboard backlight directory"
54-
command: find /sys/class/leds/ -name '*kbd_backlight'
55-
register: backlight_path
56-
5752
- name: "{{ item | basename | splitext | first }} - Execute the keyboard backlight script"
5853
shell: /etc/profile.d/set_keyboard_backlight.sh
5954
when:
6055
- script_exists.stat.exists
61-
- not backlight_path.stdout == ""

0 commit comments

Comments
 (0)