mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-25 22:18:53 +07:00
Always wipe disk and filesystems
This commit is contained in:
parent
4d864faa4a
commit
0091ab9f6f
@ -8,12 +8,17 @@ passwd:
|
||||
- {{ ssh_public_key }}
|
||||
|
||||
storage:
|
||||
# Set hostname
|
||||
disks:
|
||||
wipeTable: true
|
||||
filesystems:
|
||||
wipeFilesystem: true
|
||||
files:
|
||||
# Set hostname
|
||||
- path: /etc/hostname
|
||||
mode: 0644
|
||||
contents:
|
||||
inline: {{ hostvars[item]['inventory_hostname'] }}
|
||||
# Set static IP
|
||||
- path: /etc/NetworkManager/system-connections/{{ network_interface }}.nmconnection
|
||||
mode: 0600
|
||||
contents:
|
||||
@ -29,8 +34,8 @@ storage:
|
||||
dns={{ dns_server }};
|
||||
dns-search=
|
||||
method=manual
|
||||
# Set timezone
|
||||
links:
|
||||
# Set timezone
|
||||
- path: /etc/localtime
|
||||
target: /usr/share/zoneinfo/{{ timezone }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user