From: pmikus Date: Wed, 6 May 2020 13:18:14 +0000 (+0000) Subject: Ansible: Mount /tmp as tmpfs X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=5145244d6dadd309ecdcb24289aed13485ae2e9d;ds=sidebyside Ansible: Mount /tmp as tmpfs Signed-off-by: pmikus Change-Id: I69d9290d42c154f54e71e769a3a5d89a69c2e602 --- diff --git a/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml index 67da43b996..4605783795 100644 --- a/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml @@ -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 index 0000000000..f239890989 --- /dev/null +++ b/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/ubuntu_bionic.yaml @@ -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