summaryrefslogtreecommitdiffstats
path: root/cleanup-systemd/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'cleanup-systemd/tasks/main.yml')
-rw-r--r--cleanup-systemd/tasks/main.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/cleanup-systemd/tasks/main.yml b/cleanup-systemd/tasks/main.yml
new file mode 100644
index 0000000..b6e61e4
--- /dev/null
+++ b/cleanup-systemd/tasks/main.yml
@@ -0,0 +1,18 @@
+---
+- name: Disable obsolete systemd services
+ systemd:
+ name: "{{ item }}"
+ state: stopped
+ masked: yes
+ enabled: no
+ with_items:
+ - "{{ services }}"
+ ignore_errors: yes
+
+- name: Remove kexec sysvinit compatibility files
+ file:
+ path: "{{ item }}"
+ state: absent
+ with_items:
+ - /etc/init.d/kexec
+ - /etc/init.d/kexec-load