vmware / ansible-vsphere-gos-validation

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

[Linux] Mount CDROM device with state=ephemeral for adding local DVD repo #638

Closed keirazhang closed 3 weeks ago

keirazhang commented 3 weeks ago

Ansible mount module will write an entry to /etc/fstab when state=mounted. See https://docs.ansible.com/ansible/latest/collections/ansible/posix/mount_module.html

And when state=absent, the entry should be removed from /etc/fstsab, but it seems not working all the time. This fix is to change state=ephemeral for mounting CDROM, so that it won't write the mount entry to /etc/fstab. So that after a reboot, it will not break the system due to not finding the fstab entry device.

vmwclabot commented 3 weeks ago

@keirazhang, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.