Ansible: Mount /tmp as tmpfs
[csit.git] / resources / tools / testbed-setup / ansible / roles / performance_tuning / tasks / ubuntu_bionic.yaml
diff --git a/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/ubuntu_bionic.yaml b/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/ubuntu_bionic.yaml
new file mode 100644 (file)
index 0000000..f239890
--- /dev/null
@@ -0,0 +1,17 @@
+---
+# file: roles/performance_tuning/tasks/ubuntu_bionic.yaml
+
+- name: Ubuntu Bionic - Mount /tmp as tmpfs I
+    copy:
+      src: "/usr/share/systemd/tmp.mount"
+      dest: "/etc/systemd/system/tmp.mount"
+      remote_src: yes
+  tags:
+    - machine-optimizations
+
+- name: Ubuntu Bionic - Mount /tmp as tmpfs II
+  service:
+    name: "tmp.mount"
+    enabled: yes
+  tags:
+    - machine-optimizations