Reload udev rules

This commit is contained in:
Przemek Grondek 2022-10-26 01:25:32 +02:00
parent 6d7e92052f
commit b37396fa75
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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