Foreman ESXi Installation is always in “Pending Installation” status

Hello, I am trying to install ESXi 7.0. System installing without any problem, i have the same problem like discribed here Foreman ESXi Installation is always in "Pending Installation" status - #5 by No1

I have added lines below, but it didn’t work
echo “nameserver <%= @host.subnet.dns_primary %>” >> /etc/resolv.conf
wget -q -O /dev/null <%= foreman_url %>
echo “Done with Foreman call”
exit 0

Could you help me please

Expected outcome:

Foreman and Proxy versions:
Foreman and Proxy versions 3.4.0

Foreman and Proxy plugin versions:
foreman_puppet version 4.0.1
foreman_templates 9.2.0

Distribution and version:
RockyLinux 8

Other relevant data:

problem solved