Fix incorrect installer address

This commit is contained in:
Khue Doan 2021-08-31 04:17:59 +07:00
parent e4b2ebb979
commit 2a944bd597
3 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,6 @@ set timeout=1
menuentry 'Rocky-8.4-x86_64-minimal (PXE)' {
linux vmlinuz \
ip=dhcp \
inst.repo=http://192.168.1.12/os \
ks=http://192.168.1.12/init-config/${net_default_mac}.ks
initrd initrd.img
}

View File

@ -3,7 +3,6 @@ set timeout=1
menuentry '{{ iso_url | basename | splitext | first }} (PXE)' {
linux vmlinuz \
ip=dhcp \
inst.repo=http://{{ ansible_default_ipv4.address }}/os \
ks=http://{{ ansible_default_ipv4.address }}/init-config/${net_default_mac}.ks
initrd initrd.img
}

View File

@ -15,11 +15,11 @@ ignoredisk --only-use={{ disk }}
autopart
# Network information
network --bootproto=static --device={{ network_interface }} --ip={{ ansible_host }} --gateway={{ ansible_default_ipv4.gateway }} --nameserver={{ dns_server }} --netmask={{ ansible_default_ipv4.netmask }} --ipv6=auto --hostname={{ hostvars[item]['inventory_hostname'] }} --activate
network --bootproto=static --device={{ network_interface }} --ip={{ hostvars[item]['ansible_host'] }} --gateway={{ ansible_default_ipv4.gateway }} --nameserver={{ dns_server }} --netmask={{ ansible_default_ipv4.netmask }} --ipv6=auto --hostname={{ hostvars[item]['inventory_hostname'] }} --activate
# Use network installation
repo --name="Minimal" --baseurl=http://{{ ansible_default_ipv4.address }}/os/Minimal
url --url="http://{{ ansible_default_ipv4.address }}/iso/"
url --url="http://{{ ansible_default_ipv4.address }}/os"
# Disable Setup Agent on first boot
firstboot --disable
# Do not configure the X Window System