vmware / ansible-vsphere-gos-validation

Guest OS validation test set for vSphere using Ansible
Other
41 stars 30 forks source link

[Linux] Get cloud-init version from command line #617

Closed keirazhang closed 3 months ago

keirazhang commented 3 months ago

The cloud-init version get from Ansible package module is not a full version on RHEL family. This change directly gets the cloud-init version from cloud-init command Take RHEL_9.4 as an example, before this change, cloud-init version get from Ansible module is 23.4; with this change, we can get the full version 23.4-7.el9_4.

Photon_5.0: 24.2
RHEL_9.x: 23.4-7.el9_4
RHEL_7.x: 19.4
RockyLinux_8.x: 23.4-7.el8_10.0.1
ProLinux_8.x: 21.1-15.0.1.el8
CentOS_10: 24.1.4-13.el10
Debian_10.x_64: 20.2
Photon_4.0: 24.2
Ubuntu_24.04: 24.1.3-0ubuntu3
Pardus_23.x: 22.4.2