diff --git a/roles/edpm_kernel/tasks/reboot.yaml b/roles/edpm_kernel/tasks/reboot.yaml index 611dc2ea6..57d65925f 100644 --- a/roles/edpm_kernel/tasks/reboot.yaml +++ b/roles/edpm_kernel/tasks/reboot.yaml @@ -62,8 +62,7 @@ # This condition will list all the interfaces except the one with valid IP (which is Provisioning network at this stage) # Simpler Version - hostvars[inventory_hostname]['ansible_' + iface_name ]['ipv4'] is undefined - hostvars[inventory_hostname]['ansible_facts'][item.path | regex_replace('(^.*ifcfg-)(.*)', '\\2') | replace('-', '_')]['ipv4'] is undefined - loop: - - "{{ ifcfg_files.files }}" + loop: "{{ ifcfg_files.files }}" - name: Reboot debug message ansible.builtin.debug: