Compare commits
12
Commits
94548d06a8
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59a3f5efaa | ||
|
|
e8b4bf8a3a | ||
|
|
be3ba1b6ef | ||
|
|
a73806dde2 | ||
|
|
8b5a165b34 | ||
|
|
1bade76655 | ||
|
|
23b94c361b | ||
|
|
6414b455d8 | ||
|
|
d580ace85a | ||
|
|
5604cff61e | ||
|
|
12b0ef4031 | ||
|
|
98613ff6e8 |
No files matched your search
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
debianunattended_debian_version: 13.0.0
|
|
||||||
@@ -1,4 +1,16 @@
|
|||||||
---
|
---
|
||||||
|
- name: query current debian release info
|
||||||
|
uri:
|
||||||
|
url: "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/SHA256SUMS"
|
||||||
|
return_content: true
|
||||||
|
delegate_to: localhost
|
||||||
|
run_once: true
|
||||||
|
register: debianunattended_sha256sums
|
||||||
|
|
||||||
|
- name: determine current debian version
|
||||||
|
set_fact:
|
||||||
|
debianunattended_debian_version: "{{ debianunattended_sha256sums.content | regex_search('debian-([0-9]+\\.[0-9]+\\.[0-9]+)-amd64-netinst\\.iso', '\\1') | first }}"
|
||||||
|
|
||||||
- name: check if iso exists
|
- name: check if iso exists
|
||||||
stat:
|
stat:
|
||||||
path: "{{ playbook_dir }}/debian-{{ debianunattended_debian_version }}-amd64-netinst-unattended-{{ inventory_hostname }}.iso"
|
path: "{{ playbook_dir }}/debian-{{ debianunattended_debian_version }}-amd64-netinst-unattended-{{ inventory_hostname }}.iso"
|
||||||
|
|||||||
@@ -263,10 +263,10 @@ d-i partman/confirm boolean true
|
|||||||
d-i partman/confirm_nooverwrite boolean true
|
d-i partman/confirm_nooverwrite boolean true
|
||||||
|
|
||||||
# Force UEFI booting ('BIOS compatibility' will be lost). Default: false.
|
# Force UEFI booting ('BIOS compatibility' will be lost). Default: false.
|
||||||
d-i partman-efi/non_efi_system boolean true
|
#d-i partman-efi/non_efi_system boolean true
|
||||||
# Ensure the partition table is GPT - this is required for EFI
|
# Ensure the partition table is GPT - this is required for EFI
|
||||||
d-i partman-partitioning/choose_label select gpt
|
#d-i partman-partitioning/choose_label select gpt
|
||||||
d-i partman-partitioning/default_label string gpt
|
#d-i partman-partitioning/default_label string gpt
|
||||||
|
|
||||||
# When disk encryption is enabled, skip wiping the partitions beforehand.
|
# When disk encryption is enabled, skip wiping the partitions beforehand.
|
||||||
#d-i partman-auto-crypto/erase_disks boolean false
|
#d-i partman-auto-crypto/erase_disks boolean false
|
||||||
@@ -322,8 +322,6 @@ d-i partman-partitioning/confirm_write_new_label boolean true
|
|||||||
d-i partman/choose_partition select finish
|
d-i partman/choose_partition select finish
|
||||||
d-i partman/confirm boolean true
|
d-i partman/confirm boolean true
|
||||||
d-i partman/confirm_nooverwrite boolean true
|
d-i partman/confirm_nooverwrite boolean true
|
||||||
d-i partman/confirm_nochanges boolean true
|
|
||||||
d-i partman-md/confirm_nooverwrite boolean true
|
|
||||||
|
|
||||||
## Controlling how partitions are mounted
|
## Controlling how partitions are mounted
|
||||||
# The default is to mount by UUID, but you can also choose "traditional" to
|
# The default is to mount by UUID, but you can also choose "traditional" to
|
||||||
@@ -345,6 +343,8 @@ d-i partman-md/confirm_nooverwrite boolean true
|
|||||||
# Choose, if you want to scan additional installation media
|
# Choose, if you want to scan additional installation media
|
||||||
# (default: false).
|
# (default: false).
|
||||||
d-i apt-setup/cdrom/set-first boolean false
|
d-i apt-setup/cdrom/set-first boolean false
|
||||||
|
# You can choose to install non-free firmware.
|
||||||
|
d-i apt-setup/non-free-firmware boolean true
|
||||||
# You can choose to install non-free and contrib software.
|
# You can choose to install non-free and contrib software.
|
||||||
d-i apt-setup/non-free boolean true
|
d-i apt-setup/non-free boolean true
|
||||||
d-i apt-setup/contrib boolean true
|
d-i apt-setup/contrib boolean true
|
||||||
@@ -352,7 +352,7 @@ d-i apt-setup/contrib boolean true
|
|||||||
# entry for a DVD/BD installation image active in the installed system
|
# entry for a DVD/BD installation image active in the installed system
|
||||||
# (entries for netinst or CD images will be disabled anyway, regardless of
|
# (entries for netinst or CD images will be disabled anyway, regardless of
|
||||||
# this setting).
|
# this setting).
|
||||||
d-i apt-setup/disable-cdrom-entries boolean true
|
#d-i apt-setup/disable-cdrom-entries boolean true
|
||||||
# Uncomment this if you don't want to use a network mirror.
|
# Uncomment this if you don't want to use a network mirror.
|
||||||
#d-i apt-setup/use_mirror boolean false
|
#d-i apt-setup/use_mirror boolean false
|
||||||
# Select which update services to use; define the mirrors to be used.
|
# Select which update services to use; define the mirrors to be used.
|
||||||
@@ -495,15 +495,6 @@ d-i finish-install/reboot_in_progress note
|
|||||||
# packages and run commands in the target system.
|
# packages and run commands in the target system.
|
||||||
d-i preseed/late_command string /cdrom/late_command.sh
|
d-i preseed/late_command string /cdrom/late_command.sh
|
||||||
|
|
||||||
##added
|
|
||||||
d-i apt-setup/cdrom/set-first boolean false
|
|
||||||
d-i apt-setup/cdrom/set-next boolean false
|
|
||||||
d-i apt-setup/cdrom/set-failed boolean false
|
|
||||||
apt-cdrom-setup apt-setup/cdrom/set-next boolean false
|
|
||||||
apt-cdrom-setup apt-setup/cdrom/set-failed boolean true
|
|
||||||
pkgsel/update-policy select none
|
|
||||||
pkgsel/updatedb boolean true
|
|
||||||
|
|
||||||
{% if debianunattended_staticip_ipaddress is defined %}
|
{% if debianunattended_staticip_ipaddress is defined %}
|
||||||
#static IPv4 address?
|
#static IPv4 address?
|
||||||
d-i netcfg/disable_autoconfig boolean true
|
d-i netcfg/disable_autoconfig boolean true
|
||||||
|
|||||||
Reference in new issue
Block a user