diff options
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml | 33 | ||||
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/calibration/tasks/ubuntu.yaml | 9 |
2 files changed, 42 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml new file mode 100644 index 0000000000..b70694ad31 --- /dev/null +++ b/resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml @@ -0,0 +1,33 @@ +--- +# file: roles/calibration/tasks/main.yaml + +- name: Ubuntu specific + import_tasks: ubuntu.yaml + when: ansible_distribution|lower == 'ubuntu' + +- name: Run Spectre Meltdown checker + raw: 'spectre-meltdown-checker --no-color' + register: spectre_meltdown_output + tags: run-spectre-meltdown-checker + +- debug: var=spectre_meltdown_output.stdout_lines + tags: run-spectre-meltdown-checker + +- name: Clone Jitter tool + git: + repo: 'https://gerrit.fd.io/r/pma_tools' + dest: '{{ jitter.directory }}' + tags: run-jitter-tool + +- name: Compile Jitter tool + raw: 'cd {{ jitter.directory }}/jitter && make' + tags: run-jitter-tool + +- name: Run Jitter tool + raw: '{{ jitter.directory }}/jitter/jitter -c {{ jitter.core }} -i {{ jitter.iterations }} -f' + become: yes + register: jitter_output + tags: run-jitter-tool + +- debug: var=jitter_output.stdout_lines + tags: run-jitter-tool diff --git a/resources/tools/testbed-setup/ansible/roles/calibration/tasks/ubuntu.yaml b/resources/tools/testbed-setup/ansible/roles/calibration/tasks/ubuntu.yaml new file mode 100644 index 0000000000..bb4ad1e8c7 --- /dev/null +++ b/resources/tools/testbed-setup/ansible/roles/calibration/tasks/ubuntu.yaml @@ -0,0 +1,9 @@ +--- +# file: roles/calibration/tasks/ubuntu.yaml + +- name: Install calibration dependencies + apt: + name: 'spectre-meltdown-checker' + state: 'present' + install_recommends: False + tags: install-csit-dependencies |