feat(ansible): Ubuntu Jammy VI.
[csit.git] / fdio.infra.ansible / roles / intel / tasks / main.yaml
index a73e629..864811b 100644 (file)
@@ -1,8 +1,8 @@
 ---
-# file: roles/performance_tuning/tasks/main.yaml
+# file: roles/intel/tasks/main.yaml
 
 - name: Inst - Update Package Cache (APT)
-  apt:
+  ansible.builtin.apt:
     update_cache: true
     cache_valid_time: 3600
   when:
   tags:
     - intel-inst-drivers
 
-- name: Inst - Machine Prerequisites
-  package:
+- name: Inst - Prerequisites
+  ansible.builtin.package:
     name: "{{ packages | flatten(levels=1) }}"
     state: latest
   tags:
     - intel-inst-drivers
 
 - name: Inst - Check Presence of Intel Ethernet 700 Series
-  shell: "lspci -d 8086:1583; lspci -d 8086:1585; lspci -d 8086:1572"
+  ansible.builtin.shell: "lspci -d 8086:1583; lspci -d 8086:1585; lspci -d 8086:1572; lspci -d 8086:158a; lspci -d 8086:158b"
   register: intel_700_pcis
   failed_when: false
   changed_when: false
@@ -26,7 +26,7 @@
     - intel-inst-drivers
 
 - name: Inst - Check Presence of Intel Ethernet 800 Series
-  shell: "lspci -d 8086:1592"
+  ansible.builtin.shell: "lspci -d 8086:1592; lspci -d 8086:1891"
   register: intel_800_pcis
   failed_when: false
   changed_when: false
@@ -34,7 +34,7 @@
     - intel-inst-drivers
 
 - name: Inst - Get Intel Ethernet 700 Series driver versions
-  set_fact:
+  ansible.builtin.set_fact:
     i40e: "{{ intel_700_compatibility_matrix[intel_700_matrix]['i40e'] }}"
     iavf: "{{ intel_700_compatibility_matrix[intel_700_matrix]['iavf'] }}"
     nvm: "{{ intel_700_compatibility_matrix[intel_700_matrix]['nvm'] }}"
@@ -44,7 +44,7 @@
     - intel-inst-drivers
 
 - name: Inst - Get Intel Ethernet 800 Series driver versions
-  set_fact:
+  ansible.builtin.set_fact:
     ice: "{{ intel_800_compatibility_matrix[intel_800_matrix]['ice'] }}"
     ddp: "{{ intel_800_compatibility_matrix[intel_800_matrix]['ddp'] }}"
     iavf: "{{ intel_800_compatibility_matrix[intel_800_matrix]['iavf'] }}"
@@ -73,9 +73,9 @@
 - name: Inst - Driver Intel iAVF
   import_tasks: iavf.yaml
   when: >
-    intel_700_pcis.stdout_lines | length > 0 or
-    intel_800_pcis.stdout_lines | length > 0 and
-    intel_700_matrix is defined or
-    intel_800_matrix is defined
+    (intel_700_pcis.stdout_lines | length > 0 and
+    intel_700_matrix is defined ) or
+    (intel_800_pcis.stdout_lines | length > 0 and
+    intel_800_matrix is defined)
   tags:
     - intel-inst-drivers