Ansible: Mount /tmp as tmpfs
[csit.git] / resources / tools / testbed-setup / ansible / roles / performance_tuning / tasks / ubuntu_bionic.yaml
index 62b64be..f239890 100644 (file)
@@ -1,11 +1,17 @@
 ---
 # file: roles/performance_tuning/tasks/ubuntu_bionic.yaml
 
-- name: Install CSIT dependencies
-  apt:
-    name:
-      - 'cpufrequtils'
-    state: 'present'
-    cache_valid_time: 3600
-    install_recommends: False
-  tags: install-csit-dependencies
+- 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