tlp, use bash to enable and start for runit.
This commit is contained in:
@@ -130,8 +130,11 @@
|
|||||||
|
|
||||||
- name: Workstation | Linux | Software | TLP | runit | Enable + Start
|
- name: Workstation | Linux | Software | TLP | runit | Enable + Start
|
||||||
shell: |
|
shell: |
|
||||||
if [[ ! -e {{ runit_service_dir }}/{{ tlp_service }} ]]; then
|
if [[ ! -e {{ runit_service_dir }}/{{ tlp_service }} &&
|
||||||
ln -s {{ runit_script_dir }}/{{ tlp_service }} {{ runit_service_dir }}/
|
-e {{ runit_script_dir }}/{{ tlp_service }} ]]; then
|
||||||
|
ln -s {{ runit_script_dir }}/{{ tlp_service }} {{ runit_service_dir }}
|
||||||
fi
|
fi
|
||||||
|
sv tlp start
|
||||||
|
executable: "{{ bash_exec.stdout }}"
|
||||||
when: ansible_service_mgr == "runit"
|
when: ansible_service_mgr == "runit"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user