|
1 | | -# Copyright 2025 Dell Inc. or its subsidiaries. All Rights Reserved. |
| 1 | +# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved. |
2 | 2 | # |
3 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | # you may not use this file except in compliance with the License. |
|
13 | 13 | # limitations under the License. |
14 | 14 | --- |
15 | 15 |
|
16 | | -- name: Fetch x86_64 default_packages.json software packages |
| 16 | +- name: Fetch x86_64 default_packages.json and additional_packages.json software packages |
17 | 17 | when: fg_x86_64 |
18 | 18 | block: |
19 | | - - name: Load default_packages.json |
20 | | - ansible.builtin.include_vars: |
21 | | - file: "{{ default_json_path }}" |
22 | | - name: default_package_json |
| 19 | + - name: Collect base image RPM packages (default + additional + admin_debug) |
| 20 | + base_image_package_collector: |
| 21 | + default_json_path: "{{ default_json_path }}" |
| 22 | + additional_json_path: "{{ additional_json_path | default('') }}" |
| 23 | + admin_debug_json_path: "{{ admin_debug_json_path | default('') }}" |
| 24 | + software_config_path: "{{ software_config_file_path }}" |
| 25 | + register: base_image_output |
23 | 26 |
|
24 | | - - name: Extract rpm packages |
| 27 | + - name: Set x86_64_base_image_packages |
25 | 28 | ansible.builtin.set_fact: |
26 | | - x86_64_base_image_packages: >- |
27 | | - {{ default_package_json.default_packages.cluster |
28 | | - | selectattr('type', 'equalto', 'rpm') |
29 | | - | map(attribute='package') |
30 | | - | list }} |
| 29 | + x86_64_base_image_packages: "{{ base_image_output.base_image_packages }}" |
31 | 30 |
|
32 | 31 | - name: Debug package x86_64_base_image_packages |
33 | 32 | ansible.builtin.debug: |
|
39 | 38 | functional_groups_file: "{{ functional_groups_file_path }}" |
40 | 39 | software_config_file: "{{ software_config_file_path }}" |
41 | 40 | input_project_dir: "{{ input_project_dir }}" |
| 41 | + additional_json_path: "{{ additional_json_path }}" |
42 | 42 | register: compute_images_output |
43 | 43 |
|
44 | 44 | - name: Save packages for x86_64 keys in compute_images_dict |
|
0 commit comments