aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml
blob: 2d28f92ae307a87bfc276cd7fad039ebef486a43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
# file: roles/calibration/tasks/x86_64.yaml

- name: Calibration - Clone PMA Tool
  ansible.builtin.git:
    repo: "https://gerrit.fd.io/r/pma_tools"
    dest: "{{ pma_directory }}"
  tags:
    - check-jitter-tool

- name: Calibration - Compile PMA Tool
  ansible.builtin.raw: "cd {{ pma_directory }}/jitter && make"
  tags:
    - check-jitter-tool

- name: Calibration - Run Jitter Tool
  ansible.builtin.shell: "{{ pma_directory }}/jitter/jitter -c {{ jitter_core }} -i {{ jitter_iterations }} -f"
  become: true
  async: 60
  poll: 0
  ignore_errors: true
  register: jitter_async
  tags:
    - check-jitter-tool

- name: Check sync status
  ansible.builtin.async_status:
    jid: "{{ jitter_async.ansible_job_id }}"
  register: "jitter_poll_results"
  until: jitter_poll_results.finished
  retries: 30

- ansible.builtin.debug: var=jitter_poll_results.stdout_lines
  tags:
    - check-jitter-tool