diff options
author | pmikus <pmikus@cisco.com> | 2020-05-06 13:18:14 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2020-05-20 10:08:59 +0000 |
commit | 5145244d6dadd309ecdcb24289aed13485ae2e9d (patch) | |
tree | fc9c4d727d288bbf3886417fa7b0610ed13e30bf /resources/tools | |
parent | 46a4469f4e585d4ea1c9410f72ee519c3148cae0 (diff) |
Ansible: Mount /tmp as tmpfs
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I69d9290d42c154f54e71e769a3a5d89a69c2e602
Diffstat (limited to 'resources/tools')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml | 5 | ||||
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/ubuntu_bionic.yaml | 17 |
2 files changed, 22 insertions, 0 deletions
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 |