From 2541652153e3bda3384275ab02995f6f7e3b2a5d Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 11 Aug 2026 11:42:05 -0700 Subject: [PATCH] tlp, use bash to enable and start for runit. --- tasks/workstation/linux/software/tlp.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tasks/workstation/linux/software/tlp.yml b/tasks/workstation/linux/software/tlp.yml index f1f3526..bfb97be 100644 --- a/tasks/workstation/linux/software/tlp.yml +++ b/tasks/workstation/linux/software/tlp.yml @@ -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"