summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-06-26 14:26:32 +0300
committerLars Wirzenius <liw@liw.fi>2022-06-26 14:26:54 +0300
commitf9c8f65b7503928fee8d00ba4b56cdd36793919f (patch)
treeda1d710e7cd4e9091065869ba59ea4eca1fba25d
parent6377f0aaf16dc6cb199735256a299d40585cdfd0 (diff)
downloadv-i-f9c8f65b7503928fee8d00ba4b56cdd36793919f.tar.gz
disable systemd journal persistence on installer image
for boot speed Sponsored-by: author
-rw-r--r--installer-ansible.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/installer-ansible.yml b/installer-ansible.yml
index fe7475a..a53d998 100644
--- a/installer-ansible.yml
+++ b/installer-ansible.yml
@@ -15,6 +15,18 @@
shell: |
sed -i '/^root:[^:]*:/s//root::/' /etc/passwd
+ - name: "uninstall rsyslogd"
+ apt:
+ name: rsyslogd
+ state: absent
+ purge: yes
+
+ - name: "make systemd journal volatile (non-persistent)"
+ lineinfile:
+ path: /etc/systemd/journald.conf
+ regexp: Storage=
+ line: Storage=volatile
+
- name: "create /root/.ssh"
file:
state: directory