summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--enable-sysrq/tasks/main.yml4
-rw-r--r--enable-sysrq/templates/99-openslx.conf.j21
-rw-r--r--journald/tasks/main.yml8
3 files changed, 13 insertions, 0 deletions
diff --git a/enable-sysrq/tasks/main.yml b/enable-sysrq/tasks/main.yml
new file mode 100644
index 0000000..2120e39
--- /dev/null
+++ b/enable-sysrq/tasks/main.yml
@@ -0,0 +1,4 @@
+- name: Enable magic keys
+ template:
+ src: templates/99-openslx.conf.j2
+ dest: /etc/sysctl.d/99-openslx.conf
diff --git a/enable-sysrq/templates/99-openslx.conf.j2 b/enable-sysrq/templates/99-openslx.conf.j2
new file mode 100644
index 0000000..3613892
--- /dev/null
+++ b/enable-sysrq/templates/99-openslx.conf.j2
@@ -0,0 +1 @@
+kernel.sysrq = 1
diff --git a/journald/tasks/main.yml b/journald/tasks/main.yml
new file mode 100644
index 0000000..6397115
--- /dev/null
+++ b/journald/tasks/main.yml
@@ -0,0 +1,8 @@
+---
+- name: Set journald to volatile storage
+ ini_file:
+ dest: "/etc/systemd/journald.conf"
+ section: Journal
+ option: Storage
+ value: volatile
+ no_extra_spaces: yes