summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2021-05-19 10:19:38 +0200
committerJonathan Bauer2021-05-19 10:19:38 +0200
commitf2fb009e54e05dcfdd6b745b7d5316d266c6add9 (patch)
tree31bdc0145fc186b1bdf8caadd3cd744fea206a40
parent[mltk-vmware] mltk vmware addon (diff)
downloadansible-bwlp-f2fb009e54e05dcfdd6b745b7d5316d266c6add9.tar.gz
ansible-bwlp-f2fb009e54e05dcfdd6b745b7d5316d266c6add9.tar.xz
ansible-bwlp-f2fb009e54e05dcfdd6b745b7d5316d266c6add9.zip
[*] volatile journald and sysrq config
-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