diff options
author | 2020-02-10 08:42:33 +0000 | |
---|---|---|
committer | 2020-02-12 09:46:52 +0000 | |
commit | 34ec0f34987ceaec1f77cb56c4c672f01aa4dca4 (patch) | |
tree | 7ecc79fb2680321cb1c4a5e773d85f29ee17da7d /resources/tools/testbed-setup/ansible/roles/calibration/tasks/x86_64.yaml | |
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/tasks/x86_64.yaml')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/calibration/tasks/x86_64.yaml | 24 |
1 files changed, 17 insertions, 7 deletions
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 |