diff options
Diffstat (limited to 'fdio.infra.ansible/roles/calibration/tasks')
-rw-r--r-- | fdio.infra.ansible/roles/calibration/tasks/aarch64.yaml | 2 | ||||
-rw-r--r-- | fdio.infra.ansible/roles/calibration/tasks/main.yaml | 26 | ||||
-rw-r--r-- | fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml | 35 |
3 files changed, 2 insertions, 61 deletions
diff --git a/fdio.infra.ansible/roles/calibration/tasks/aarch64.yaml b/fdio.infra.ansible/roles/calibration/tasks/aarch64.yaml deleted file mode 100644 index e01245556a..0000000000 --- a/fdio.infra.ansible/roles/calibration/tasks/aarch64.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# file: tasks/aarch64.yaml diff --git a/fdio.infra.ansible/roles/calibration/tasks/main.yaml b/fdio.infra.ansible/roles/calibration/tasks/main.yaml index 9db95a87a0..77c9a43430 100644 --- a/fdio.infra.ansible/roles/calibration/tasks/main.yaml +++ b/fdio.infra.ansible/roles/calibration/tasks/main.yaml @@ -1,23 +1,7 @@ --- # file: tasks/main.yaml -- name: Update Package Cache (APT) - ansible.builtin.apt: - update_cache: true - cache_valid_time: 3600 - when: - - ansible_distribution|lower == 'ubuntu' - tags: - - calibration-inst-prerequisites - -- name: Prerequisites - ansible.builtin.package: - name: "{{ packages | flatten(levels=1) }}" - state: latest - tags: - - calibration-inst-prerequisites - -- name: Check Kernel Parameters +- name: "Check Kernel Parameters" ansible.builtin.assert: that: - item in ansible_cmdline @@ -29,7 +13,7 @@ tags: - check-kernel-params -- name: Check Kernel Version +- name: "Check Kernel Version" ansible.builtin.assert: that: - ansible_kernel not in kernel_version_by_distro_by_arch @@ -37,9 +21,3 @@ success_msg: "Kernel version match." tags: - check-kernel-version - -- name: "{{ ansible_machine }} Specific" - include_tasks: "{{ ansible_machine }}.yaml" - tags: - - check-machine-specific - - check-jitter-tool diff --git a/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml b/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml deleted file mode 100644 index dd4e307ca6..0000000000 --- a/fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml +++ /dev/null @@ -1,35 +0,0 @@ ---- -# file: tasks/x86_64.yaml - -- name: Clone PMA Tool - ansible.builtin.git: - repo: "https://gerrit.fd.io/r/pma_tools" - dest: "{{ pma_directory }}" - tags: - - check-jitter-tool - -- name: 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 |