diff --git a/playbooks/roles/ironic-enroll-dynamic/defaults/main.yml b/playbooks/roles/ironic-enroll-dynamic/defaults/main.yml index 51acc7f6f..87892e464 100644 --- a/playbooks/roles/ironic-enroll-dynamic/defaults/main.yml +++ b/playbooks/roles/ironic-enroll-dynamic/defaults/main.yml @@ -3,7 +3,6 @@ ironic_url: "http://localhost:6385/" file_url_port: "8080" # Default network interface that bifrost will be attached to. network_interface: "virbr0" -ans_network_interface: "{{ network_interface | replace('-', '_') }}" # Normally this would setting would be http in a bifrost installation # without TLS. This setting allows a user to override the setting in case @@ -12,7 +11,7 @@ ans_network_interface: "{{ network_interface | replace('-', '_') }}" # documentation at http://ipxe.org/crypto ipa_file_protocol: "http" -ipa_kernel_url: "{{ ipa_file_protocol }}://{{ hostvars[inventory_hostname]['ansible_' + ans_network_interface]['ipv4']['address'] }}:{{file_url_port}}/ipa.vmlinuz" -ipa_ramdisk_url: "{{ ipa_file_protocol }}://{{ hostvars[inventory_hostname]['ansible_' + ans_network_interface]['ipv4']['address'] }}:{{file_url_port}}/ipa.initramfs" +ipa_kernel_url: "{{ ipa_file_protocol }}://{{ hostvars[inventory_hostname]['ansible_' + network_interface | replace('-', '_')]['ipv4']['address'] }}:{{file_url_port}}/ipa.vmlinuz" +ipa_ramdisk_url: "{{ ipa_file_protocol }}://{{ hostvars[inventory_hostname]['ansible_' + network_interface | replace('-', '_')]['ipv4']['address'] }}:{{file_url_port}}/ipa.initramfs" noauth_mode: true