update to debian 11 and name .iso by hostname-variable

This commit is contained in:
DigitalInfinity committed 2021-09-25 22:28:16 +02:00
1 parent f3c00a59e2
commit e25f888523
2 files changed
+49 -28

No files matched your search

+4 -4
View File
@@ -14,8 +14,8 @@
- name: Download ISO Image
get_url:
url: "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.9.0-amd64-netinst.iso"
dest: "/opt/ansiblepackages/debianunattended/debian-10.9.0-amd64-netinst.iso"
url: "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.0.0-amd64-netinst.iso"
dest: "/opt/ansiblepackages/debianunattended/debian-11.0.0-amd64-netinst.iso"
- name: delete old stuff
file:
@@ -23,7 +23,7 @@
state: absent
- name: extract ISO Image
command: xorriso -osirrox on -indev /opt/ansiblepackages/debianunattended/debian-10.9.0-amd64-netinst.iso -extract / /opt/ansiblepackages/debianunattended/isofiles/
command: xorriso -osirrox on -indev /opt/ansiblepackages/debianunattended/debian-11.0.0-amd64-netinst.iso -extract / /opt/ansiblepackages/debianunattended/isofiles/
args:
creates: /opt/ansiblepackages/debianunattended/isofiles/install.amd/initrd.gz
@@ -99,4 +99,4 @@
mode: +w
- name: genisoimage
command: genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /opt/ansiblepackages/debianunattended/debian-10.9.0-amd64-netinst-unattended.iso /opt/ansiblepackages/debianunattended/isofiles
command: genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /opt/ansiblepackages/debianunattended/debian-11.0.0-amd64-netinst-unattended-{{ debianunattended_hostname }}.iso /opt/ansiblepackages/debianunattended/isofiles