From 173ecd299b63f5f3256fed01e9659695699a037e Mon Sep 17 00:00:00 2001 From: Sandwich Date: Wed, 30 Oct 2024 19:30:12 +0100 Subject: [PATCH] Different aproche for ISO mounting --- roles/configuration/tasks/main.yml | 2 +- roles/environment/tasks/main.yml | 2 +- roles/virtualization/tasks/vmware.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/configuration/tasks/main.yml b/roles/configuration/tasks/main.yml index 123e940..da3d641 100644 --- a/roles/configuration/tasks/main.yml +++ b/roles/configuration/tasks/main.yml @@ -18,7 +18,7 @@ ansible.builtin.lineinfile: path: /mnt/etc/fstab regexp: '^.*\/dvd.*$' - line: "{{ '/dev/loop0' if hypervisor == 'vmware' else '/dev/sr0' }} /usr/local/install/redhat/dvd iso9660 ro,relatime,nojoliet,check=s,map=n 0 0" + line: "/dev/sr0 /usr/local/install/redhat/dvd iso9660 ro,relatime,nojoliet,check=s,map=n 0 0" state: present backrefs: true diff --git a/roles/environment/tasks/main.yml b/roles/environment/tasks/main.yml index e3e44e3..224cff6 100644 --- a/roles/environment/tasks/main.yml +++ b/roles/environment/tasks/main.yml @@ -108,7 +108,7 @@ - name: Mount RHEL ISO ansible.posix.mount: - src: /dev/sr2 + src: "{{ '/dev/sr1' if hypervisor == 'vmware' else '/dev/sr2' }}" path: /usr/local/install/redhat/dvd fstype: iso9660 opts: "ro,loop" diff --git a/roles/virtualization/tasks/vmware.yml b/roles/virtualization/tasks/vmware.yml index 698ffff..42a0c74 100644 --- a/roles/virtualization/tasks/vmware.yml +++ b/roles/virtualization/tasks/vmware.yml @@ -28,7 +28,7 @@ type: iso iso_path: "{{ boot_iso }}" - controller_number: 0 - unit_number: 2 + unit_number: 1 controller_type: sata state: present type: iso