Skip to content

Commit

Permalink
Merge pull request #487 from Jaganathancse/kernel-args-reboot-issue
Browse files Browse the repository at this point in the history
ifcfg files reading issue fix
  • Loading branch information
openshift-merge-bot[bot] authored Nov 30, 2023
2 parents 3b0e5f1 + e7925d5 commit cce7511
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 cce7511

Please sign in to comment.