Skip to content

Commit

Permalink
ifcfg files list item reading issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaganathan Palanisamy committed Nov 30, 2023
1 parent ebe1621 commit e7925d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions roles/edpm_kernel/tasks/reboot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e7925d5

Please sign in to comment.