Fix variable hierarchy

This commit is contained in:
2024-10-30 22:19:00 +01:00
parent e5660b0ba7
commit db1fd13623
5 changed files with 7 additions and 10 deletions

View File

@@ -24,9 +24,8 @@
backrefs: true
- name: Write image from RHEL ISO to the target machine
ansible.builtin.command: >
"dd if={{ '/dev/sr1' if hypervisor == 'vmware' else '/dev/sr2' }}
of=/mnt/usr/local/install/redhat/rhel.iso bs=4M status=progress"
when: os in ["rhel8", "rhel9"] and hypervisor == 'vmware'
ansible.builtin.command: dd if=/dev/sr1 of=/mnt/usr/local/install/redhat/rhel.iso bs=4M
changed_when: result.rc == 0
register: result