mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 13:08:52 +07:00
refactor(metal): create partitions manually
https://github.com/khuedoan/homelab/issues/40
This commit is contained in:
parent
3b107c28fa
commit
bce3291872
@ -12,7 +12,8 @@ lang en_US.UTF-8
|
||||
clearpart --all --drives={{ hostvars[item]['disk'] }}
|
||||
# Partitioning
|
||||
ignoredisk --only-use={{ hostvars[item]['disk'] }}
|
||||
autopart --nohome
|
||||
partition /boot/efi --fstype=vfat --size=512
|
||||
partition / --fstype=ext4 --grow
|
||||
|
||||
# Network information
|
||||
network --bootproto=static --device={{ hostvars[item]['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
|
||||
|
Loading…
Reference in New Issue
Block a user