Reload udev rules
This commit is contained in:
parent
6d7e92052f
commit
b37396fa75
@ -3,6 +3,9 @@
|
|||||||
path: /sys/class/power_supply/BAT0/charge_control_end_threshold
|
path: /sys/class/power_supply/BAT0/charge_control_end_threshold
|
||||||
register: battery_limiter_available
|
register: battery_limiter_available
|
||||||
|
|
||||||
|
- name: Powersave tasks
|
||||||
|
import_tasks: powersave.yml
|
||||||
|
|
||||||
- when: battery_limiter_available.stat.exists
|
- when: battery_limiter_available.stat.exists
|
||||||
block:
|
block:
|
||||||
- import_tasks: battery.yml
|
- import_tasks: battery.yml
|
||||||
|
@ -22,3 +22,10 @@
|
|||||||
src: etc/udev/rules.d/99-powersave.rules
|
src: etc/udev/rules.d/99-powersave.rules
|
||||||
dest: /etc/udev/rules.d/99-powersave.rules
|
dest: /etc/udev/rules.d/99-powersave.rules
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: 'reload udev rules'
|
||||||
|
become: yes
|
||||||
|
shell:
|
||||||
|
cmd: |
|
||||||
|
udevadm control --reload
|
||||||
|
udevadm trigger
|
||||||
|
Loading…
Reference in New Issue
Block a user