Ansible: Mount /tmp as tmpfs 22/26922/4
authorpmikus <pmikus@cisco.com>
Wed, 6 May 2020 13:18:14 +0000 (13:18 +0000)
committerPeter Mikus <pmikus@cisco.com>
Wed, 20 May 2020 10:08:59 +0000 (10:08 +0000)
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I69d9290d42c154f54e71e769a3a5d89a69c2e602

resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml
resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/ubuntu_bionic.yaml [new file with mode: 0644]

index 67da43b..4605783 100644 (file)
@@ -9,6 +9,11 @@
   tags:
     - install-dependencies
 
+- name: Performance Tuning - Distribution - release - machine optimizations
+  include_tasks: '{{ ansible_distribution|lower }}_{{ ansible_distribution_release }}.yaml'
+  tags:
+    - machine-optimizations
+
 - name: Performance Tuning - Configure {{ ansible_machine }} Kernel Parameters
   lineinfile:
     path: "/etc/default/grub"
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

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.