Fix variable hierarchy
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
block:
|
||||
- name: Wait for connection
|
||||
ansible.builtin.wait_for_connection:
|
||||
timeout: 30
|
||||
timeout: 60
|
||||
delay: 5
|
||||
|
||||
- name: Gather facts
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
pvs: "{{ install_drive }}{{ main_partition_suffix }}"
|
||||
|
||||
- name: Create LVM logical volumes
|
||||
when: cis or (not cis and item.lv != 'var_log' and item.lv != 'var_log_audit')
|
||||
when: cis | bool or item.lv not in ['var_log', 'var_log_audit']
|
||||
community.general.lvol:
|
||||
vg: sys
|
||||
lv: "{{ item.lv }}"
|
||||
|
||||
Reference in New Issue
Block a user