tlp, use bash to enable and start for runit.

This commit is contained in:
2026-08-11 11:42:05 -07:00
parent afec44e8cb
commit 2541652153
+5 -2
View File
@@ -130,8 +130,11 @@
- name: Workstation | Linux | Software | TLP | runit | Enable + Start
shell: |
if [[ ! -e {{ runit_service_dir }}/{{ tlp_service }} ]]; then
ln -s {{ runit_script_dir }}/{{ tlp_service }} {{ runit_service_dir }}/
if [[ ! -e {{ runit_service_dir }}/{{ tlp_service }} &&
-e {{ runit_script_dir }}/{{ tlp_service }} ]]; then
ln -s {{ runit_script_dir }}/{{ tlp_service }} {{ runit_service_dir }}
fi
sv tlp start
executable: "{{ bash_exec.stdout }}"
when: ansible_service_mgr == "runit"