-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsystemd-disable.pb
80 lines (80 loc) · 2.32 KB
/
systemd-disable.pb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
- hosts: all
vars:
TYPE: systemd-disable
INSTANCE: main
ETC_FILES:
- name: system.units
content: "{{system|join('\n')}}"
- name: user.units
content: "{{user|join('\n')}}"
BINS:
- name: disable.sh
content: |
action="${1:-disable}"
target="${2:-system}"
source="${3:-{{ETC}}/$target.units}"
shift || true; shift || true; shift || true
list="$(cat $source)"
systemctl --$target $action $list $*
system:
- snapper-boot.service
- snapper-cleanup.service
- snapper-timeline.service
- snapperd.service
- wpa_supplicant.service
- NetworkManager.service
- gdm3.service
- prometheus-smokeping-prober.service
- prometheus-node-exporter-smartmon.timer
- prometheus-node-exporter-smartmon.service
- prometheus-node-exporter-nvme.timer
- prometheus-node-exporter-nvme.service
- prometheus-node-exporter-mellanox-hca-temp.timer
- prometheus-node-exporter-mellanox-hca-temp.service
- prometheus-node-exporter-ipmitool-sensor.timer
- prometheus-node-exporter-ipmitool-sensor.service
- prometheus-node-exporter-apt.timer
- prometheus-node-exporter-apt.service
- prometheus-pushgateway.service
- prometheus-process-exporter.service
- prometheus-postgres-exporter.service
- prometheus-node-exporter.service
- prometheus-homeplug-exporter.service
- prometheus-blackbox-exporter.service
- prometheus-alertmanager.service
- prometheus.service
- tinc.service
- accounts-daemon.service
- switcheroo-control.service
- spacenavd.service
- resolvconf.service
- plymouth-quit-wait.service
- plymouth-read-write.service
- plymouth-start.service
- pgcluu_collectd.service
- oomd.service
- auditd.service
- dundee.service
- ofono.service
- lxc-net.service
- lxc.service
- lxcfs.service
- mumble-server.service
- olpc-powerd.service
- smbd.service
- nmbd.service
- apt-cacher-ng.service
- libvirtd.service
- libvirt-guests.service
- neard.service
- rbdmap.service
- pulseaudio-enable-autospawn.service
- e2scrub_all.timer
- udisks2.service
user:
- tracker-miner-fs-3.service
- dirmngr.service
- mmsd-tng.service
tasks:
- include: tasks/compfuzor.includes type=opt