Hyperling
e39aeb20e7
* Added parameters (also made the script more of a program). * Add additional options for unplugged devices. * Allow disabling of cron jobs and lowering of telegraf frequency through new config options. * Fix cron package name. * Fix ssh service name for Ubuntu. * Add output to the options so user knows they were switched. * Prevent some tasks when device is mobile. * Enhance and add to comments. * Add function to check flatpak app disk usage. * Add repair into flatpak commands to help clean disk space of unused apps. * Remove "Done!" output from flatpak-usage. * Go ahead and add function for purging Flatpak apps. * Few more comment changes.
29 lines
645 B
YAML
29 lines
645 B
YAML
---
|
|
# Definitions for service management.
|
|
|
|
- name: General | Facts | Service | All
|
|
set_fact:
|
|
cups: cups
|
|
cups_pattern: cupsd
|
|
cups_browse: cups-browsed
|
|
cups_browse_pattern: cups-browsed
|
|
sshd: sshd
|
|
sshd_pattern: sshd
|
|
sshd_config: /etc/ssh/sshd_config
|
|
crond: cron
|
|
crond_pattern: cron
|
|
acpi: acpid
|
|
acpi_pattern: acpid
|
|
|
|
- name: General | Facts | Service | Arch Linux
|
|
set_fact:
|
|
crond: cronie
|
|
crond_pattern: cronie
|
|
when: ansible_distribution == "Archlinux"
|
|
|
|
- name: General | Facts | Service | Ubuntu Linux
|
|
set_fact:
|
|
sshd: ssh
|
|
sshd_pattern: ssh
|
|
when: ansible_distribution == "Ubuntu"
|