tlp, attempt to automate enabling with runit.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
- name: Workstation | Linux | Software | TLP | Facts (Artix)
|
||||
set_fact:
|
||||
ppd_package: "power-profiles-daemon power-profiles-daemon-runit"
|
||||
tlp: tlp tlp-runit
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
and ansible_service_mgr == "runit"
|
||||
|
||||
@@ -52,6 +53,17 @@
|
||||
- "{{ tlp_smart }}"
|
||||
update_cache: yes
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | Enable
|
||||
service:
|
||||
name: tlp
|
||||
state: started
|
||||
enabled: yes
|
||||
when: ansible_service_mgr not in ("runit")
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | Enable (runit, Artix)
|
||||
shell: "ln -s {{runit_script_dir }}/tlp {{ runit_service_dir }}/tlp"
|
||||
when: ansible_service_mgr == "runit"
|
||||
|
||||
## Configuration ##
|
||||
|
||||
# Device choices:
|
||||
|
||||
Reference in New Issue
Block a user