Skip to content

Commit 672d88b

Browse files
authored
Fix regression issue found in SLES/SLED/Ubuntu (#414)
* Fix regression issue found in SLES/SLED/Ubuntu Signed-off-by: Qi Zhang <[email protected]>
1 parent 9cac790 commit 672d88b

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

autoinstall/Ubuntu/Server/user-data.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,12 @@ autoinstall:
4545
geoip: true
4646
packages:
4747
- sg3-utils
48+
{% if ubuntu_version is defined and ubuntu_version is version('22.04', '>=') %}
4849
- ndctl
4950
- rdma-core
5051
- rdmacm-utils
5152
- ibverbs-utils
53+
{% endif %}
5254
late-commands:
5355
- rm -f /etc/cloud/cloud.cfg.d/*-installer.cfg 2>/dev/null
5456
- echo 'Acquire::ForceIPv4 "true";' >>/etc/apt/apt.conf.d/99force-ipv4

common/esxi_get_guest_config_options.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@
145145
tmp_config_option_file: "{{ tmp_path }}"
146146

147147
- name: "Fetch config option file from ESXi server"
148-
fetch:
148+
ansible.builtin.fetch:
149149
src: "{{ vm_config_option_esx_hw }}"
150150
dest: "{{ tmp_config_option_file }}"
151151
flat: true
152152
delegate_to: "{{ esxi_hostname }}"
153153

154154
- name: "Get default config option from guest OS descriptor for guest id {{ guest_id }}"
155-
xml:
155+
community.general.xml:
156156
path: "{{ tmp_config_option_file }}"
157157
xpath: "{{ guest_config_options_xpath }}/{{ item }}"
158158
content: text
@@ -171,7 +171,7 @@
171171
with_items: "{{ guest_os_descriptor.results | map(attribute='matches') | select('defined') | flatten | map('dict2items') }}"
172172

173173
- name: "Get default video RAM size in KB for guest id {{ guest_id }}"
174-
xml:
174+
community.general.xml:
175175
path: "{{ tmp_config_option_file }}"
176176
xpath: "{{ guest_config_options_xpath }}/vRAMSizeInKB/defaultValue"
177177
content: text
@@ -187,7 +187,7 @@
187187
- guest_vram_size.matches | length > 0
188188

189189
- name: "Get supported disk controllers for guest id {{ guest_id }}"
190-
xml:
190+
community.general.xml:
191191
path: "{{ tmp_config_option_file }}"
192192
xpath: "{{ guest_config_options_xpath }}/supportedDiskControllerList/e"
193193
content: text
@@ -210,7 +210,7 @@
210210
- guest_supported_disk_ctrls.matches | length > 0
211211

212212
- name: "Get supported disk controllers for guest id {{ guest_id }}"
213-
xml:
213+
community.general.xml:
214214
path: "{{ tmp_config_option_file }}"
215215
xpath: "{{ guest_config_options_xpath }}/supportedEthernetCard/e"
216216
content: text
@@ -233,7 +233,7 @@
233233
- guest_supported_ethernet_card.matches | length > 0
234234

235235
- name: "Get supported USB controllers for guest id {{ guest_id }}"
236-
xml:
236+
community.general.xml:
237237
path: "{{ tmp_config_option_file }}"
238238
xpath: "{{ guest_config_options_xpath }}/supportedUSBControllerList/e"
239239
content: text

linux/utils/add_local_dvd_repo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
vars:
127127
repo_name: "{{ dvd_repo_name }}-{{ repodata_path | dirname | basename }}"
128128
repo_baseurl: "{{ repodata_path | dirname }}"
129-
gpg_check: true
129+
gpg_check: "{{ guest_os_ansible_distribution == 'RedHat' }}"
130130
with_items: "{{ find_repodata_result.stdout_lines }}"
131131
loop_control:
132132
loop_var: repodata_path

0 commit comments

Comments
 (0)