Add a report for runit to list all services and their status.
This commit is contained in:
@@ -5,7 +5,17 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
services_report_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services.txt"
|
services_report_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services.txt"
|
||||||
services_enabled_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services-enabled.txt"
|
services_enabled_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services-enabled.txt"
|
||||||
|
services_command: "echo 'Service Manager {{ ansisible_service_mgr }} Not Recognized'
|
||||||
|
|
||||||
|
- name: General | Tests | Services | Set Facts | SystemD
|
||||||
|
set_fact:
|
||||||
services_command: "systemctl list-unit-files"
|
services_command: "systemctl list-unit-files"
|
||||||
|
when: ansisible_service_mgr == "systemd"
|
||||||
|
|
||||||
|
- name: General | Tests | Services | Set Facts | runit
|
||||||
|
set_fact:
|
||||||
|
services_command: 'for s in /var/service/*; do sv status "$s"; done'
|
||||||
|
when: ansisible_service_mgr == "runit"
|
||||||
|
|
||||||
- name: General | Tests | Services | Create Main Report
|
- name: General | Tests | Services | Create Main Report
|
||||||
shell: "{{ item }}"
|
shell: "{{ item }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user