diff options
author | Peter Mikus <pmikus@cisco.com> | 2020-02-10 08:42:33 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2020-02-12 09:46:52 +0000 |
commit | 34ec0f34987ceaec1f77cb56c4c672f01aa4dca4 (patch) | |
tree | 7ecc79fb2680321cb1c4a5e773d85f29ee17da7d /resources/tools/testbed-setup/ansible/roles/calibration | |
parent | c3abfc9d604770a10a658d1a7f780c3761fe15f4 (diff) |
Ansible: Optimizations
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I56fb45fb22b924eec6ee6b6b7ad7874a07f1555c
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/calibration')
-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/x86_64.yaml | 24 |
2 files changed, 42 insertions, 15 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 index 462f72788c..cf0f2450bb 100644 --- a/resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml @@ -9,18 +9,35 @@ tags: - install-dependencies -- name: Calibration - Run Spectre Meltdown Checker - raw: "wget -qO - https://meltdown.ovh | sudo bash -s - --no-color || true" - register: spectre_meltdown_output +- name: Calibration - Get Spectre Meltdown Checker + get_url: + url: "https://meltdown.ovh" + dest: "/opt/spectre-meltdown-checker.sh" + mode: "744" tags: - - run-spectre-meltdown-checker + - check-spectre-meltdown -- debug: var=spectre_meltdown_output.stdout_lines +- name: Calibration - Run Spectre Meltdown Checker + shell: "/opt/spectre-meltdown-checker.sh --no-color || true" + async: 60 + poll: 0 + register: spectre_meltdown_async tags: - - run-spectre-meltdown-checker + - check-spectre-meltdown - name: Calibration - {{ ansible_machine }} Specific include_tasks: "{{ ansible_machine }}.yaml" - when: ansible_machine == "x86_64" tags: - - run-jitter-tool + - check-machine-specific + - check-jitter-tool + +- name: Check sync status + async_status: + jid: "{{ spectre_meltdown_async.ansible_job_id }}" + register: "spectre_meltdown_poll_results" + until: spectre_meltdown_poll_results.finished + retries: 30 + +- debug: var=spectre_meltdown_poll_results.stdout_lines + tags: + - check-spectre-meltdown diff --git a/resources/tools/testbed-setup/ansible/roles/calibration/tasks/x86_64.yaml b/resources/tools/testbed-setup/ansible/roles/calibration/tasks/x86_64.yaml index 1d9ed5ea08..90b1c954b5 100644 --- a/resources/tools/testbed-setup/ansible/roles/calibration/tasks/x86_64.yaml +++ b/resources/tools/testbed-setup/ansible/roles/calibration/tasks/x86_64.yaml @@ -6,20 +6,30 @@ repo: "https://gerrit.fd.io/r/pma_tools" dest: "{{ pma_directory }}" tags: - - run-jitter-tool + - check-jitter-tool - name: Calibration - Compile PMA Tool raw: "cd {{ pma_directory }}/jitter && make" tags: - - run-jitter-tool + - check-jitter-tool - name: Calibration - Run Jitter Tool - raw: "{{ pma_directory }}/jitter/jitter -c {{ jitter_core }} -i {{ jitter_iterations }} -f" + shell: "{{ pma_directory }}/jitter/jitter -c {{ jitter_core }} -i {{ jitter_iterations }} -f" become: yes - register: jitter_output + async: 60 + poll: 0 + ignore_errors: yes + register: jitter_async tags: - - run-jitter-tool + - check-jitter-tool -- debug: var=jitter_output.stdout_lines +- name: Check sync status + async_status: + jid: "{{ jitter_async.ansible_job_id }}" + register: "jitter_poll_results" + until: jitter_poll_results.finished + retries: 30 + +- debug: var=jitter_poll_results.stdout_lines tags: - - run-jitter-tool + - check-jitter-tool |