runit, fix the enabling and disabling for services and tlp playbooks.
This commit is contained in:
@@ -135,15 +135,15 @@
|
|||||||
when: ansible_service_mgr != "runit"
|
when: ansible_service_mgr != "runit"
|
||||||
|
|
||||||
- name: General | Software | Services | Disable (runit)
|
- name: General | Software | Services | Disable (runit)
|
||||||
service:
|
shell: |
|
||||||
name: "{{ item.name }}"
|
if [[ -e {{ runit_service_dir }}/{{ item.name }} ]]; then
|
||||||
state: stopped
|
rm -v {{ runit_service_dir }}/{{ item.name }}
|
||||||
enabled: no
|
fi
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
loop:
|
loop:
|
||||||
- {name: "{{ cups }}"
|
- {name: "{{ cups }}" }
|
||||||
- {name: "{{ cups_pattern }}"
|
- {name: "{{ cups_pattern }}" }
|
||||||
- {name: "{{ cups_browse }}"}
|
- {name: "{{ cups_browse }}" }
|
||||||
- {name: "{{ cups_browse_pattern }}"}
|
- {name: "{{ cups_browse_pattern }}"}
|
||||||
when: ansible_service_mgr == "runit"
|
when: ansible_service_mgr == "runit"
|
||||||
|
|
||||||
|
|||||||
@@ -98,6 +98,9 @@
|
|||||||
when: ansible_service_mgr not in ("runit")
|
when: ansible_service_mgr not in ("runit")
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | TLP | Enable + Start (runit)
|
- name: Workstation | Linux | Software | TLP | Enable + Start (runit)
|
||||||
shell: "ln -s {{runit_script_dir }}/tlp {{ runit_service_dir }}/tlp"
|
shell: |
|
||||||
|
if [[ ! -e {{ runit_service_dir }}/tlp ]]; then
|
||||||
|
ln -s {{ runit_script_dir }}/tlp {{ runit_service_dir }}/tlp
|
||||||
|
fi
|
||||||
when: ansible_service_mgr == "runit"
|
when: ansible_service_mgr == "runit"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user