Different aproche for ISO mounting
This commit is contained in:
parent
4d242ad987
commit
173ecd299b
@ -18,7 +18,7 @@
|
|||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /mnt/etc/fstab
|
path: /mnt/etc/fstab
|
||||||
regexp: '^.*\/dvd.*$'
|
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
|
state: present
|
||||||
backrefs: true
|
backrefs: true
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@
|
|||||||
|
|
||||||
- name: Mount RHEL ISO
|
- name: Mount RHEL ISO
|
||||||
ansible.posix.mount:
|
ansible.posix.mount:
|
||||||
src: /dev/sr2
|
src: "{{ '/dev/sr1' if hypervisor == 'vmware' else '/dev/sr2' }}"
|
||||||
path: /usr/local/install/redhat/dvd
|
path: /usr/local/install/redhat/dvd
|
||||||
fstype: iso9660
|
fstype: iso9660
|
||||||
opts: "ro,loop"
|
opts: "ro,loop"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
type: iso
|
type: iso
|
||||||
iso_path: "{{ boot_iso }}"
|
iso_path: "{{ boot_iso }}"
|
||||||
- controller_number: 0
|
- controller_number: 0
|
||||||
unit_number: 2
|
unit_number: 1
|
||||||
controller_type: sata
|
controller_type: sata
|
||||||
state: present
|
state: present
|
||||||
type: iso
|
type: iso
|
||||||
|
Loading…
Reference in New Issue
Block a user