diff options
author | Peter Mikus <pmikus@cisco.com> | 2022-08-17 13:57:23 +0000 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2022-08-19 05:01:23 +0000 |
commit | 0b947247146f27936e986c262fc9f1d641b5ac4f (patch) | |
tree | 141ee3f1a57b4c7287c0409b876d3fb96769c9cb /fdio.infra.ansible/roles/calibration/tasks/main.yaml | |
parent | d92086e8ee964d2d5700046ef85c6b681844288a (diff) |
feat(ansible): Ubuntu Jammy VI.
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I7dda690f2dc2e42bf6c67d3faa3327a03de3a9fa
Diffstat (limited to 'fdio.infra.ansible/roles/calibration/tasks/main.yaml')
-rw-r--r-- | fdio.infra.ansible/roles/calibration/tasks/main.yaml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fdio.infra.ansible/roles/calibration/tasks/main.yaml b/fdio.infra.ansible/roles/calibration/tasks/main.yaml index 62470b4d7f..5807d7e2a4 100644 --- a/fdio.infra.ansible/roles/calibration/tasks/main.yaml +++ b/fdio.infra.ansible/roles/calibration/tasks/main.yaml @@ -2,7 +2,7 @@ # file: roles/calibration/tasks/main.yaml - name: Inst - Update Package Cache (APT) - apt: + ansible.builtin.apt: update_cache: true cache_valid_time: 3600 when: @@ -11,21 +11,21 @@ - calibration-inst-prerequisites - name: Inst - Prerequisites - package: + ansible.builtin.package: name: "{{ packages | flatten(levels=1) }}" state: latest tags: - calibration-inst-prerequisites - name: Check CPU Power States - shell: "lscpu" + ansible.builtin.shell: "lscpu" register: current_lscpu changed_when: false tags: - check-cpu-frequency - name: Check CPU Power States - assert: + ansible.builtin.assert: that: - "'CPU min MHz' not in current_lscpu.stdout or 'Intel(R) Xeon(R)' not in ansible_processor" fail_msg: "CPU configuration!" @@ -34,7 +34,7 @@ - check-cpu-frequency - name: Check Kernel Parameters - assert: + ansible.builtin.assert: that: - item in ansible_cmdline fail_msg: "Kernel parameters!" @@ -46,7 +46,7 @@ - check-kernel-params - name: Check Kernel Version - assert: + ansible.builtin.assert: that: - ansible_kernel not in kernel_version_by_distro_by_arch fail_msg: "Kernel version!" @@ -55,14 +55,14 @@ - check-kernel-version - name: Spectre Meltdown Checker Status - stat: + ansible.builtin.stat: path: "/opt/spectre-meltdown-checker.sh" register: spectre_meltdown_status tags: - check-spectre-meltdown - name: Get Spectre Meltdown Checker - get_url: + ansible.builtin.get_url: url: "https://meltdown.ovh" dest: "/opt/spectre-meltdown-checker.sh" mode: "744" @@ -72,7 +72,7 @@ - check-spectre-meltdown - name: Run Spectre Meltdown Checker - shell: "/opt/spectre-meltdown-checker.sh --no-color --sysfs-only || true" + ansible.builtin.shell: "/opt/spectre-meltdown-checker.sh --no-color --sysfs-only || true" ignore_errors: true register: spectre_meltdown_sync tags: |